Skip to content

Commit

Permalink
[SQL] Add USING keyword (sublimehq#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
FichteFoll authored and wbond committed Feb 19, 2019
1 parent 5d8ca73 commit c637e9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SQL/SQL.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ contexts:
scope: constant.numeric.sql
- match: (?i:\b(true|false)\b)
scope: constant.boolean.sql
- match: (?i:\b(select(\s+(distinct|top))?|insert(\s+(ignore\s+)?into)?|update|delete|truncate|from|set|where|group\sby|or|like|between|and|with|case|when|then|else|end|union(\s+all)?|having|order\sby|limit|(inner|cross)\s+join|join|straight_join|(left|right)(\s+outer)?\s+join|natural(\s+(left|right)(\s+outer)?)?\s+join)\b)
- match: (?i:\b(select(\s+(distinct|top))?|insert(\s+(ignore\s+)?into)?|update|delete|truncate|from|set|where|group\sby|or|like|between|and|with|case|when|then|else|end|union(\s+all)?|having|using|order\sby|limit|(inner|cross)\s+join|join|straight_join|(left|right)(\s+outer)?\s+join|natural(\s+(left|right)(\s+outer)?)?\s+join)\b)
scope: keyword.other.DML.sql
- match: (?i:\b(on|((is\s+)?not\s+)?null)\b)
scope: keyword.other.DDL.create.II.sql
Expand Down
2 changes: 2 additions & 0 deletions SQL/syntax_test_sql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ SELECT "My "" Crazy Column Name" FROM my_table;
SELECT
(
SELECT CASE field
USING a
-- <- keyword.other.DML
WHEN 1
THEN -- comment's say that
-- ^ comment.line.double-dash
Expand Down

0 comments on commit c637e9c

Please sign in to comment.