File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 23
23
24
24
function isArray ( val ) { return Object . prototype . toString . call ( val ) == "[object Array]" }
25
25
26
- function getModeConf ( editor ) {
27
- return editor . getModeAt ( editor . getCursor ( ) ) . config || CodeMirror . resolveMode ( "text/x-sql" )
26
+ function getModeConf ( editor , field ) {
27
+ return editor . getModeAt ( editor . getCursor ( ) ) . config [ field ] || CodeMirror . resolveMode ( "text/x-sql" ) [ field ]
28
28
}
29
29
30
30
function getKeywords ( editor ) {
31
- return getModeConf ( editor ) . keywords || [ ]
31
+ return getModeConf ( editor , " keywords" ) || [ ]
32
32
}
33
33
34
34
function getIdentifierQuote ( editor ) {
35
- return getModeConf ( editor ) . identifierQuote || "`" ;
35
+ return getModeConf ( editor , " identifierQuote" ) || "`" ;
36
36
}
37
37
38
38
function getText ( item ) {
You can’t perform that action at this time.
0 commit comments