fix emmet in ejs mode

pull/268/head
nightwing 2016-03-07 18:47:12 +04:00
rodzic 0abbb60735
commit 172dba514e
1 zmienionych plików z 1 dodań i 1 usunięć

2
node_modules/ace/lib/ace/ext/emmet.js wygenerowano vendored
Wyświetl plik

@ -411,7 +411,7 @@ exports.isAvailable = function(editor, command) {
// TODO refactor mode delegates to make this simpler
try {
editorProxy.setupContext(editor);
if (/js|php/.test(editorProxy.getSyntax()))
if (/^(js|php)/.test(editorProxy.getSyntax()))
isSupported = false;
} catch(e) {}
}