Skip to content

Commit

Permalink
Ensure all keywords are case-insensitive
Browse files Browse the repository at this point in the history
Fixes #100
  • Loading branch information
nene committed Dec 24, 2024
1 parent fdeedd1 commit d9727a9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/parser.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -8609,7 +8609,7 @@ ACTION = kw:"ACTION"i !ident_part { return loc(createK
ADD = kw:"ADD"i !ident_part { return loc(createKeyword(kw)); }
ADMIN = kw:"ADMIN"i !ident_part { return loc(createKeyword(kw)); }
AFTER = kw:"AFTER"i !ident_part { return loc(createKeyword(kw)); }
AGAINST = kw:"AGAINST" !ident_part { return loc(createKeyword(kw)); }
AGAINST = kw:"AGAINST"i !ident_part { return loc(createKeyword(kw)); }
ALGORITHM = kw:"ALGORITHM"i !ident_part { return loc(createKeyword(kw)); }
ALL = kw:"ALL"i !ident_part { return loc(createKeyword(kw)); }
ALTER = kw:"ALTER"i !ident_part { return loc(createKeyword(kw)); }
Expand Down Expand Up @@ -8715,10 +8715,10 @@ DATABASE = kw:"DATABASE"i !ident_part { return loc(createK
DATE = kw:"DATE"i !ident_part { return loc(createKeyword(kw)); }
DATETIME = kw:"DATETIME"i !ident_part { return loc(createKeyword(kw)); }
DAY = kw:"DAY"i !ident_part { return loc(createKeyword(kw)); }
DAY_HOUR = kw:"DAY_HOUR" !ident_part { return loc(createKeyword(kw)); }
DAY_MICROSECOND = kw:"DAY_MICROSECOND" !ident_part { return loc(createKeyword(kw)); }
DAY_MINUTE = kw:"DAY_MINUTE" !ident_part { return loc(createKeyword(kw)); }
DAY_SECOND = kw:"DAY_SECOND" !ident_part { return loc(createKeyword(kw)); }
DAY_HOUR = kw:"DAY_HOUR"i !ident_part { return loc(createKeyword(kw)); }
DAY_MICROSECOND = kw:"DAY_MICROSECOND"i !ident_part { return loc(createKeyword(kw)); }
DAY_MINUTE = kw:"DAY_MINUTE"i !ident_part { return loc(createKeyword(kw)); }
DAY_SECOND = kw:"DAY_SECOND"i !ident_part { return loc(createKeyword(kw)); }
DAYOFWEEK = kw:"DAYOFWEEK"i !ident_part { return loc(createKeyword(kw)); }
DAYOFYEAR = kw:"DAYOFYEAR"i !ident_part { return loc(createKeyword(kw)); }
DEC = kw:"DEC"i !ident_part { return loc(createKeyword(kw)); }
Expand Down Expand Up @@ -8827,9 +8827,9 @@ HASH = kw:"HASH"i !ident_part { return loc(createK
HAVING = kw:"HAVING"i !ident_part { return loc(createKeyword(kw)); }
HIGH_PRIORITY = kw:"HIGH_PRIORITY"i !ident_part { return loc(createKeyword(kw)); }
HOUR = kw:"HOUR"i !ident_part { return loc(createKeyword(kw)); }
HOUR_MICROSECOND = kw:"HOUR_MICROSECOND" !ident_part { return loc(createKeyword(kw)); }
HOUR_MINUTE = kw:"HOUR_MINUTE" !ident_part { return loc(createKeyword(kw)); }
HOUR_SECOND = kw:"HOUR_SECOND" !ident_part { return loc(createKeyword(kw)); }
HOUR_MICROSECOND = kw:"HOUR_MICROSECOND"i !ident_part { return loc(createKeyword(kw)); }
HOUR_MINUTE = kw:"HOUR_MINUTE"i !ident_part { return loc(createKeyword(kw)); }
HOUR_SECOND = kw:"HOUR_SECOND"i !ident_part { return loc(createKeyword(kw)); }
IDENTITY = kw:"IDENTITY"i !ident_part { return loc(createKeyword(kw)); }
IF = kw:"IF"i !ident_part { return loc(createKeyword(kw)); }
IGNORE = kw:"IGNORE"i !ident_part { return loc(createKeyword(kw)); }
Expand All @@ -8841,7 +8841,7 @@ INCLUDE = kw:"INCLUDE"i !ident_part { return loc(createK
INCLUDING = kw:"INCLUDING"i !ident_part { return loc(createKeyword(kw)); }
INCREMENT = kw:"INCREMENT"i !ident_part { return loc(createKeyword(kw)); }
INDEX = kw:"INDEX"i !ident_part { return loc(createKeyword(kw)); }
INDEXED = kw:"INDEXED" !ident_part { return loc(createKeyword(kw)); }
INDEXED = kw:"INDEXED"i !ident_part { return loc(createKeyword(kw)); }
INDEXES = kw:"INDEXES"i !ident_part { return loc(createKeyword(kw)); }
INHERIT = kw:"INHERIT"i !ident_part { return loc(createKeyword(kw)); }
INHERITS = kw:"INHERITS"i !ident_part { return loc(createKeyword(kw)); }
Expand All @@ -8863,7 +8863,7 @@ INTO = kw:"INTO"i !ident_part { return loc(createK
INVISIBLE = kw:"INVISIBLE"i !ident_part { return loc(createKeyword(kw)); }
INVOKER = kw:"INVOKER"i !ident_part { return loc(createKeyword(kw)); }
IS = kw:"IS"i !ident_part { return loc(createKeyword(kw)); }
ISNULL = kw:"ISNULL" !ident_part { return loc(createKeyword(kw)); }
ISNULL = kw:"ISNULL"i !ident_part { return loc(createKeyword(kw)); }
ISODOW = kw:"ISODOW"i !ident_part { return loc(createKeyword(kw)); }
ISOLATION = kw:"ISOLATION"i !ident_part { return loc(createKeyword(kw)); }
ISOWEEK = kw:"ISOWEEK"i !ident_part { return loc(createKeyword(kw)); }
Expand Down Expand Up @@ -8928,8 +8928,8 @@ MILLISECONDS = kw:"MILLISECONDS"i !ident_part { return loc(createK
MIN = kw:"MIN"i !ident_part { return loc(createKeyword(kw)); }
MIN_ROWS = kw:"MIN_ROWS"i !ident_part { return loc(createKeyword(kw)); }
MINUTE = kw:"MINUTE"i !ident_part { return loc(createKeyword(kw)); }
MINUTE_MICROSECOND = kw:"MINUTE_MICROSECOND" !ident_part { return loc(createKeyword(kw)); }
MINUTE_SECOND = kw:"MINUTE_SECOND" !ident_part { return loc(createKeyword(kw)); }
MINUTE_MICROSECOND = kw:"MINUTE_MICROSECOND"i !ident_part { return loc(createKeyword(kw)); }
MINUTE_SECOND = kw:"MINUTE_SECOND"i !ident_part { return loc(createKeyword(kw)); }
MINVALUE = kw:"MINVALUE"i !ident_part { return loc(createKeyword(kw)); }
MOD = kw:"MOD"i !ident_part { return loc(createKeyword(kw)); }
MODE = kw:"MODE"i !ident_part { return loc(createKeyword(kw)); }
Expand Down Expand Up @@ -8958,7 +8958,7 @@ NORMALIZED = kw:"NORMALIZED"i !ident_part { return loc(createK
NOSUPERUSER = kw:"NOSUPERUSER"i !ident_part { return loc(createKeyword(kw)); }
NOT = kw:"NOT"i !ident_part { return loc(createKeyword(kw)); }
NOTHING = kw:"NOTHING"i !ident_part { return loc(createKeyword(kw)); }
NOTNULL = kw:"NOTNULL" !ident_part { return loc(createKeyword(kw)); }
NOTNULL = kw:"NOTNULL"i !ident_part { return loc(createKeyword(kw)); }
NOWAIT = kw:"NOWAIT"i !ident_part { return loc(createKeyword(kw)); }
NTH_VALUE = kw:"NTH_VALUE"i !ident_part { return loc(createKeyword(kw)); }
NTILE = kw:"NTILE"i !ident_part { return loc(createKeyword(kw)); }
Expand Down Expand Up @@ -9027,7 +9027,7 @@ RANGE = kw:"RANGE"i !ident_part { return loc(createK
RANK = kw:"RANK"i !ident_part { return loc(createKeyword(kw)); }
READ = kw:"READ"i !ident_part { return loc(createKeyword(kw)); }
REAL = kw:"REAL"i !ident_part { return loc(createKeyword(kw)); }
RECURSIVE = kw:"RECURSIVE" !ident_part { return loc(createKeyword(kw)); }
RECURSIVE = kw:"RECURSIVE"i !ident_part { return loc(createKeyword(kw)); }
REDUNDANT = kw:"REDUNDANT"i !ident_part { return loc(createKeyword(kw)); }
REFERENCES = kw:"REFERENCES"i !ident_part { return loc(createKeyword(kw)); }
REFERENCING = kw:"REFERENCING"i !ident_part { return loc(createKeyword(kw)); }
Expand Down Expand Up @@ -9075,7 +9075,7 @@ SAVEPOINT = kw:"SAVEPOINT"i !ident_part { return loc(createK
SCHEMA = kw:"SCHEMA"i !ident_part { return loc(createKeyword(kw)); }
SEARCH = kw:"SEARCH"i !ident_part { return loc(createKeyword(kw)); }
SECOND = kw:"SECOND"i !ident_part { return loc(createKeyword(kw)); }
SECOND_MICROSECOND = kw:"SECOND_MICROSECOND" !ident_part { return loc(createKeyword(kw)); }
SECOND_MICROSECOND = kw:"SECOND_MICROSECOND"i !ident_part { return loc(createKeyword(kw)); }
SECONDARY_ENGINE_ATTRIBUTE = kw:"SECONDARY_ENGINE_ATTRIBUTE"i !ident_part { return loc(createKeyword(kw)); }
SECURITY = kw:"SECURITY"i !ident_part { return loc(createKeyword(kw)); }
SELECT = kw:"SELECT"i !ident_part { return loc(createKeyword(kw)); }
Expand Down Expand Up @@ -9169,7 +9169,7 @@ UNKNOWN = kw:"UNKNOWN"i !ident_part { return loc(createK
UNLOCK = kw:"UNLOCK"i !ident_part { return loc(createKeyword(kw)); }
UNLOGGED = kw:"UNLOGGED"i !ident_part { return loc(createKeyword(kw)); }
UNNEST = kw:"UNNEST"i !ident_part { return loc(createKeyword(kw)); }
UNPIVOT = kw:"UNPIVOT" !ident_part { return loc(createKeyword(kw)); }
UNPIVOT = kw:"UNPIVOT"i !ident_part { return loc(createKeyword(kw)); }
UNSAFE = kw:"UNSAFE"i !ident_part { return loc(createKeyword(kw)); }
UNSIGNED = kw:"UNSIGNED"i !ident_part { return loc(createKeyword(kw)); }
UNTIL = kw:"UNTIL"i !ident_part { return loc(createKeyword(kw)); }
Expand Down

0 comments on commit d9727a9

Please sign in to comment.