Skip to content

Commit d9727a9

Browse files
committed
Ensure all keywords are case-insensitive
Fixes #100
1 parent fdeedd1 commit d9727a9

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/parser.pegjs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8609,7 +8609,7 @@ ACTION = kw:"ACTION"i !ident_part { return loc(createK
86098609
ADD = kw:"ADD"i !ident_part { return loc(createKeyword(kw)); }
86108610
ADMIN = kw:"ADMIN"i !ident_part { return loc(createKeyword(kw)); }
86118611
AFTER = kw:"AFTER"i !ident_part { return loc(createKeyword(kw)); }
8612-
AGAINST = kw:"AGAINST" !ident_part { return loc(createKeyword(kw)); }
8612+
AGAINST = kw:"AGAINST"i !ident_part { return loc(createKeyword(kw)); }
86138613
ALGORITHM = kw:"ALGORITHM"i !ident_part { return loc(createKeyword(kw)); }
86148614
ALL = kw:"ALL"i !ident_part { return loc(createKeyword(kw)); }
86158615
ALTER = kw:"ALTER"i !ident_part { return loc(createKeyword(kw)); }
@@ -8715,10 +8715,10 @@ DATABASE = kw:"DATABASE"i !ident_part { return loc(createK
87158715
DATE = kw:"DATE"i !ident_part { return loc(createKeyword(kw)); }
87168716
DATETIME = kw:"DATETIME"i !ident_part { return loc(createKeyword(kw)); }
87178717
DAY = kw:"DAY"i !ident_part { return loc(createKeyword(kw)); }
8718-
DAY_HOUR = kw:"DAY_HOUR" !ident_part { return loc(createKeyword(kw)); }
8719-
DAY_MICROSECOND = kw:"DAY_MICROSECOND" !ident_part { return loc(createKeyword(kw)); }
8720-
DAY_MINUTE = kw:"DAY_MINUTE" !ident_part { return loc(createKeyword(kw)); }
8721-
DAY_SECOND = kw:"DAY_SECOND" !ident_part { return loc(createKeyword(kw)); }
8718+
DAY_HOUR = kw:"DAY_HOUR"i !ident_part { return loc(createKeyword(kw)); }
8719+
DAY_MICROSECOND = kw:"DAY_MICROSECOND"i !ident_part { return loc(createKeyword(kw)); }
8720+
DAY_MINUTE = kw:"DAY_MINUTE"i !ident_part { return loc(createKeyword(kw)); }
8721+
DAY_SECOND = kw:"DAY_SECOND"i !ident_part { return loc(createKeyword(kw)); }
87228722
DAYOFWEEK = kw:"DAYOFWEEK"i !ident_part { return loc(createKeyword(kw)); }
87238723
DAYOFYEAR = kw:"DAYOFYEAR"i !ident_part { return loc(createKeyword(kw)); }
87248724
DEC = kw:"DEC"i !ident_part { return loc(createKeyword(kw)); }
@@ -8827,9 +8827,9 @@ HASH = kw:"HASH"i !ident_part { return loc(createK
88278827
HAVING = kw:"HAVING"i !ident_part { return loc(createKeyword(kw)); }
88288828
HIGH_PRIORITY = kw:"HIGH_PRIORITY"i !ident_part { return loc(createKeyword(kw)); }
88298829
HOUR = kw:"HOUR"i !ident_part { return loc(createKeyword(kw)); }
8830-
HOUR_MICROSECOND = kw:"HOUR_MICROSECOND" !ident_part { return loc(createKeyword(kw)); }
8831-
HOUR_MINUTE = kw:"HOUR_MINUTE" !ident_part { return loc(createKeyword(kw)); }
8832-
HOUR_SECOND = kw:"HOUR_SECOND" !ident_part { return loc(createKeyword(kw)); }
8830+
HOUR_MICROSECOND = kw:"HOUR_MICROSECOND"i !ident_part { return loc(createKeyword(kw)); }
8831+
HOUR_MINUTE = kw:"HOUR_MINUTE"i !ident_part { return loc(createKeyword(kw)); }
8832+
HOUR_SECOND = kw:"HOUR_SECOND"i !ident_part { return loc(createKeyword(kw)); }
88338833
IDENTITY = kw:"IDENTITY"i !ident_part { return loc(createKeyword(kw)); }
88348834
IF = kw:"IF"i !ident_part { return loc(createKeyword(kw)); }
88358835
IGNORE = kw:"IGNORE"i !ident_part { return loc(createKeyword(kw)); }
@@ -8841,7 +8841,7 @@ INCLUDE = kw:"INCLUDE"i !ident_part { return loc(createK
88418841
INCLUDING = kw:"INCLUDING"i !ident_part { return loc(createKeyword(kw)); }
88428842
INCREMENT = kw:"INCREMENT"i !ident_part { return loc(createKeyword(kw)); }
88438843
INDEX = kw:"INDEX"i !ident_part { return loc(createKeyword(kw)); }
8844-
INDEXED = kw:"INDEXED" !ident_part { return loc(createKeyword(kw)); }
8844+
INDEXED = kw:"INDEXED"i !ident_part { return loc(createKeyword(kw)); }
88458845
INDEXES = kw:"INDEXES"i !ident_part { return loc(createKeyword(kw)); }
88468846
INHERIT = kw:"INHERIT"i !ident_part { return loc(createKeyword(kw)); }
88478847
INHERITS = kw:"INHERITS"i !ident_part { return loc(createKeyword(kw)); }
@@ -8863,7 +8863,7 @@ INTO = kw:"INTO"i !ident_part { return loc(createK
88638863
INVISIBLE = kw:"INVISIBLE"i !ident_part { return loc(createKeyword(kw)); }
88648864
INVOKER = kw:"INVOKER"i !ident_part { return loc(createKeyword(kw)); }
88658865
IS = kw:"IS"i !ident_part { return loc(createKeyword(kw)); }
8866-
ISNULL = kw:"ISNULL" !ident_part { return loc(createKeyword(kw)); }
8866+
ISNULL = kw:"ISNULL"i !ident_part { return loc(createKeyword(kw)); }
88678867
ISODOW = kw:"ISODOW"i !ident_part { return loc(createKeyword(kw)); }
88688868
ISOLATION = kw:"ISOLATION"i !ident_part { return loc(createKeyword(kw)); }
88698869
ISOWEEK = kw:"ISOWEEK"i !ident_part { return loc(createKeyword(kw)); }
@@ -8928,8 +8928,8 @@ MILLISECONDS = kw:"MILLISECONDS"i !ident_part { return loc(createK
89288928
MIN = kw:"MIN"i !ident_part { return loc(createKeyword(kw)); }
89298929
MIN_ROWS = kw:"MIN_ROWS"i !ident_part { return loc(createKeyword(kw)); }
89308930
MINUTE = kw:"MINUTE"i !ident_part { return loc(createKeyword(kw)); }
8931-
MINUTE_MICROSECOND = kw:"MINUTE_MICROSECOND" !ident_part { return loc(createKeyword(kw)); }
8932-
MINUTE_SECOND = kw:"MINUTE_SECOND" !ident_part { return loc(createKeyword(kw)); }
8931+
MINUTE_MICROSECOND = kw:"MINUTE_MICROSECOND"i !ident_part { return loc(createKeyword(kw)); }
8932+
MINUTE_SECOND = kw:"MINUTE_SECOND"i !ident_part { return loc(createKeyword(kw)); }
89338933
MINVALUE = kw:"MINVALUE"i !ident_part { return loc(createKeyword(kw)); }
89348934
MOD = kw:"MOD"i !ident_part { return loc(createKeyword(kw)); }
89358935
MODE = kw:"MODE"i !ident_part { return loc(createKeyword(kw)); }
@@ -8958,7 +8958,7 @@ NORMALIZED = kw:"NORMALIZED"i !ident_part { return loc(createK
89588958
NOSUPERUSER = kw:"NOSUPERUSER"i !ident_part { return loc(createKeyword(kw)); }
89598959
NOT = kw:"NOT"i !ident_part { return loc(createKeyword(kw)); }
89608960
NOTHING = kw:"NOTHING"i !ident_part { return loc(createKeyword(kw)); }
8961-
NOTNULL = kw:"NOTNULL" !ident_part { return loc(createKeyword(kw)); }
8961+
NOTNULL = kw:"NOTNULL"i !ident_part { return loc(createKeyword(kw)); }
89628962
NOWAIT = kw:"NOWAIT"i !ident_part { return loc(createKeyword(kw)); }
89638963
NTH_VALUE = kw:"NTH_VALUE"i !ident_part { return loc(createKeyword(kw)); }
89648964
NTILE = kw:"NTILE"i !ident_part { return loc(createKeyword(kw)); }
@@ -9027,7 +9027,7 @@ RANGE = kw:"RANGE"i !ident_part { return loc(createK
90279027
RANK = kw:"RANK"i !ident_part { return loc(createKeyword(kw)); }
90289028
READ = kw:"READ"i !ident_part { return loc(createKeyword(kw)); }
90299029
REAL = kw:"REAL"i !ident_part { return loc(createKeyword(kw)); }
9030-
RECURSIVE = kw:"RECURSIVE" !ident_part { return loc(createKeyword(kw)); }
9030+
RECURSIVE = kw:"RECURSIVE"i !ident_part { return loc(createKeyword(kw)); }
90319031
REDUNDANT = kw:"REDUNDANT"i !ident_part { return loc(createKeyword(kw)); }
90329032
REFERENCES = kw:"REFERENCES"i !ident_part { return loc(createKeyword(kw)); }
90339033
REFERENCING = kw:"REFERENCING"i !ident_part { return loc(createKeyword(kw)); }
@@ -9075,7 +9075,7 @@ SAVEPOINT = kw:"SAVEPOINT"i !ident_part { return loc(createK
90759075
SCHEMA = kw:"SCHEMA"i !ident_part { return loc(createKeyword(kw)); }
90769076
SEARCH = kw:"SEARCH"i !ident_part { return loc(createKeyword(kw)); }
90779077
SECOND = kw:"SECOND"i !ident_part { return loc(createKeyword(kw)); }
9078-
SECOND_MICROSECOND = kw:"SECOND_MICROSECOND" !ident_part { return loc(createKeyword(kw)); }
9078+
SECOND_MICROSECOND = kw:"SECOND_MICROSECOND"i !ident_part { return loc(createKeyword(kw)); }
90799079
SECONDARY_ENGINE_ATTRIBUTE = kw:"SECONDARY_ENGINE_ATTRIBUTE"i !ident_part { return loc(createKeyword(kw)); }
90809080
SECURITY = kw:"SECURITY"i !ident_part { return loc(createKeyword(kw)); }
90819081
SELECT = kw:"SELECT"i !ident_part { return loc(createKeyword(kw)); }
@@ -9169,7 +9169,7 @@ UNKNOWN = kw:"UNKNOWN"i !ident_part { return loc(createK
91699169
UNLOCK = kw:"UNLOCK"i !ident_part { return loc(createKeyword(kw)); }
91709170
UNLOGGED = kw:"UNLOGGED"i !ident_part { return loc(createKeyword(kw)); }
91719171
UNNEST = kw:"UNNEST"i !ident_part { return loc(createKeyword(kw)); }
9172-
UNPIVOT = kw:"UNPIVOT" !ident_part { return loc(createKeyword(kw)); }
9172+
UNPIVOT = kw:"UNPIVOT"i !ident_part { return loc(createKeyword(kw)); }
91739173
UNSAFE = kw:"UNSAFE"i !ident_part { return loc(createKeyword(kw)); }
91749174
UNSIGNED = kw:"UNSIGNED"i !ident_part { return loc(createKeyword(kw)); }
91759175
UNTIL = kw:"UNTIL"i !ident_part { return loc(createKeyword(kw)); }

0 commit comments

Comments
 (0)