Skip to content

Commit

Permalink
SQL: Add missing keywords. Fix #1374
Browse files Browse the repository at this point in the history
UNLOCK, PREPARE, LOOP, ITERATE, REPEAT, LEAVE, RESIGNAL
  • Loading branch information
Golmote committed Apr 5, 2018
1 parent e8cb6d4 commit 238b195
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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.

14 changes: 14 additions & 0 deletions tests/languages/sql/keyword_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,14 @@ INTERVAL
INTO
INVOKER
ISOLATION
ITERATE
JOIN
KEY
KEYS
KILL
LANGUAGE
LAST
LEAVE
LEFT
LEVEL
LIMIT
Expand All @@ -178,6 +180,7 @@ LOCAL
LOCK
LONGBLOB
LONGTEXT
LOOP
MATCH
MATCHED
MEDIUMBLOB
Expand Down Expand Up @@ -227,6 +230,7 @@ POINT
POLYGON
PRECEDING
PRECISION
PREPARE
PREV
PRIMARY
PRINT
Expand All @@ -244,10 +248,12 @@ RECONFIGURE
REFERENCES
RELEASE
RENAME
REPEAT
REPEATABLE
REPLACE
REPLICATION
REQUIRE
RESIGNAL
RESTORE
RESTRICT
RETURN
Expand Down Expand Up @@ -318,6 +324,7 @@ UNCOMMITTED
UNDEFINED
UNION
UNIQUE
UNLOCK
UNPIVOT
UNSIGNED
UPDATE
Expand Down Expand Up @@ -512,12 +519,14 @@ YEAR
["keyword", "INTO"],
["keyword", "INVOKER"],
["keyword", "ISOLATION"],
["keyword", "ITERATE"],
["keyword", "JOIN"],
["keyword", "KEY"],
["keyword", "KEYS"],
["keyword", "KILL"],
["keyword", "LANGUAGE"],
["keyword", "LAST"],
["keyword", "LEAVE"],
["keyword", "LEFT"],
["keyword", "LEVEL"],
["keyword", "LIMIT"],
Expand All @@ -529,6 +538,7 @@ YEAR
["keyword", "LOCK"],
["keyword", "LONGBLOB"],
["keyword", "LONGTEXT"],
["keyword", "LOOP"],
["keyword", "MATCH"],
["keyword", "MATCHED"],
["keyword", "MEDIUMBLOB"],
Expand Down Expand Up @@ -578,6 +588,7 @@ YEAR
["keyword", "POLYGON"],
["keyword", "PRECEDING"],
["keyword", "PRECISION"],
["keyword", "PREPARE"],
["keyword", "PREV"],
["keyword", "PRIMARY"],
["keyword", "PRINT"],
Expand All @@ -595,10 +606,12 @@ YEAR
["keyword", "REFERENCES"],
["keyword", "RELEASE"],
["keyword", "RENAME"],
["keyword", "REPEAT"],
["keyword", "REPEATABLE"],
["keyword", "REPLACE"],
["keyword", "REPLICATION"],
["keyword", "REQUIRE"],
["keyword", "RESIGNAL"],
["keyword", "RESTORE"],
["keyword", "RESTRICT"],
["keyword", "RETURN"],
Expand Down Expand Up @@ -669,6 +682,7 @@ YEAR
["keyword", "UNDEFINED"],
["keyword", "UNION"],
["keyword", "UNIQUE"],
["keyword", "UNLOCK"],
["keyword", "UNPIVOT"],
["keyword", "UNSIGNED"],
["keyword", "UPDATE"],
Expand Down

0 comments on commit 238b195

Please sign in to comment.