Skip to content

Commit

Permalink
SQL: Add missing keywords and functions, fix numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Mar 7, 2018
1 parent 4593837 commit de29d4a
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 70 deletions.
6 changes: 3 additions & 3 deletions components/prism-sql.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/prism-sql.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 19 additions & 17 deletions tests/languages/sql/function_feature.test
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
COUNT (
SUM(
AVG(
MIN(
MAX(
AVG (
COUNT(
FIRST(
FORMAT(
LAST(
UCASE(
LCASE(
MID(
LEN(
ROUND(
MAX(
MID(
MIN(
MOD(
NOW(
FORMAT(
ROUND(
SUM(
UCASE(

----------------------------------------------------

[
["function", "COUNT"], ["punctuation", "("],
["function", "SUM"], ["punctuation", "("],
["function", "AVG"], ["punctuation", "("],
["function", "MIN"], ["punctuation", "("],
["function", "MAX"], ["punctuation", "("],
["function", "COUNT"], ["punctuation", "("],
["function", "FIRST"], ["punctuation", "("],
["function", "FORMAT"], ["punctuation", "("],
["function", "LAST"], ["punctuation", "("],
["function", "UCASE"], ["punctuation", "("],
["function", "LCASE"], ["punctuation", "("],
["function", "MID"], ["punctuation", "("],
["function", "LEN"], ["punctuation", "("],
["function", "ROUND"], ["punctuation", "("],
["function", "MAX"], ["punctuation", "("],
["function", "MID"], ["punctuation", "("],
["function", "MIN"], ["punctuation", "("],
["function", "MOD"], ["punctuation", "("],
["function", "NOW"], ["punctuation", "("],
["function", "FORMAT"], ["punctuation", "("]
["function", "ROUND"], ["punctuation", "("],
["function", "SUM"], ["punctuation", "("],
["function", "UCASE"], ["punctuation", "("]
]

----------------------------------------------------
Expand Down
Loading

0 comments on commit de29d4a

Please sign in to comment.