File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 2424 function isArray ( val ) { return Object . prototype . toString . call ( val ) == "[object Array]" }
2525
2626 function getKeywords ( editor ) {
27- var mode = editor . doc . modeOption ;
28- if ( mode === "sql" ) mode = "text/x-sql" ;
29- return CodeMirror . resolveMode ( mode ) . keywords ;
27+ return editor . getModeAt ( editor . getCursor ( ) ) . keywords || CodeMirror . resolveMode ( "text/x-sql" ) . keywords ;
3028 }
3129
3230 function getIdentifierQuote ( editor ) {
33- var mode = editor . doc . modeOption ;
34- if ( mode === "sql" ) mode = " text/x-sql";
35- return CodeMirror . resolveMode ( mode ) . identifierQuote || "`" ;
31+ return editor . getModeAt ( editor . getCursor ( ) ) . identifierQuote ||
32+ CodeMirror . resolveMode ( " text/x-sql") . identifierQuote ||
33+ "`" ;
3634 }
3735
3836 function getText ( item ) {
You can’t perform that action at this time.
0 commit comments