Skip to content

Commit 7b2f2ce

Browse files
committed
[sql mode] Highlight types as types, client commands as builtins
Closes #6852
1 parent d60fff6 commit 7b2f2ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mode/sql/sql.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ CodeMirror.defineMode("sql", function(config, parserConfig) {
122122
if (dateSQL.hasOwnProperty(word) && (stream.match(/^( )+'[^']*'/) || stream.match(/^( )+"[^"]*"/)))
123123
return "number";
124124
if (atoms.hasOwnProperty(word)) return "atom";
125-
if (builtin.hasOwnProperty(word)) return "builtin";
125+
if (builtin.hasOwnProperty(word)) return "type";
126126
if (keywords.hasOwnProperty(word)) return "keyword";
127-
if (client.hasOwnProperty(word)) return "string-2";
127+
if (client.hasOwnProperty(word)) return "builtin";
128128
return null;
129129
}
130130
}

0 commit comments

Comments
 (0)