SqlMode: Fixed group by and order by, and added asc and desc

This commit is contained in:
Jonathan Camile 2011-10-10 17:33:50 +02:00 committed by Fabian Jakobs
commit e26ce00afb

View file

@ -29,8 +29,8 @@ var TextHighlightRules = require("ace/mode/text_highlight_rules").TextHighlightR
var SqlHighlightRules = function() {
var keywords = lang.arrayToMap(
("select|from|where|and|or|group by|order by|limit|offset|having|as|case|" +
"when|else|end|type|left|right|join|on|outer").split("|")
("select|from|where|and|or|group|by|order|limit|offset|having|as|case|" +
"when|else|end|type|left|right|join|on|outer|desc|asc").split("|")
);
var builtinConstants = lang.arrayToMap(