ajaxorg / ace

Ace (Ajax.org Cloud9 Editor)

Home Page:https://ace.c9.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mode-sql: Not all sql highlight rules appears in minified file

rozhnev opened this issue · comments

Describe the bug

The mode-sql.min.js file distributed by url https://cdnjs.cloudflare.com/ajax/libs/ace/1.32.0/mode-sql.min.js does not contain all highlight rules described in sql_highlight_rules.js

Expected Behavior

All sql keywords rules should be present:
var keywords = (
"select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|" +
"when|then|else|end|type|left|right|join|on|outer|desc|asc|union|create|table|primary|key|if|" +
"foreign|not|references|default|null|inner|cross|natural|database|drop|grant|distinct|is|in|" +
"foreign|not|references|default|null|inner|cross|natural|database|drop|grant|distinct|is|in|" +
"all|alter|any|array|at|authorization|between|both|cast|check|collate|column|commit|constraint|"+
"cube|current|current_date|current_time|current_timestamp|current_user|describe|escape|except|" +
"exists|external|extract|fetch|filter|for|full|function|global|grouping|intersect|interval|" +
"into|leading|like|local|no|of|only|out|overlaps|partition|position|range|revoke|rollback|rollup|" +
"row|rows|session_user|set|some|start|tablesample|time|to|trailing|truncate|unique|unknown|" +
"user|using|values|window|with"
);

Current Behavior

Only part of keywords presents in distribution:
"select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|when|then|else|end|type|left|right|join|on|outer|desc|asc|union|create|table|primary|key|if|foreign|not|references|default|null|inner|cross|natural|database|drop|grant|distinct|is|in"

Reproduction Steps

Go to URL https://cdnjs.cloudflare.com/ajax/libs/ace/1.32.0/mode-sql.min.js and see keywords string included in distribution

Possible Solution

No response

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

1.32.0