File tree 2 files changed +6
-1
lines changed 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ contexts:
20
20
# Taken from https://www.postgresql.org/docs/current/sql-keywords-appendix.html
21
21
all|any|array|analy[sz]e|a?symmetric|authorization|at(?=\s+time\s+zone\b)|binary|both|by
22
22
| (?<=\bat\s)time(?=\s+zone\b) | (?<=\btime\s)zone | (?<=\bdo\s)nothing | (?<=\bon\s)conflict | (?<=\bwith\s)ordinality
23
- | cast|cross|column|concurrently|collat(?:e|ion)|create|distinct|(?<!\bas\s)do
23
+ | cast|cross|column|concurrently|collat(?:e|ion)|create|(?<=\bcreate\s)type| distinct|(?<!\bas\s)do
24
24
| except|excluded(?=\s*\.)|fetch|filter(?=\s+\()|for(?:eign)?|freeze|full|group|intersect|into|inner|isnull
25
25
| i[sn]|ilike|lateral|leading|left|natural|not(?:null)?|nullif|on(?:ly)?|offset|order|outer
26
26
| over(?:laps)?|primary|recursive|returning|right|similar|some|table(?:sample)?|to|trailing
Original file line number Diff line number Diff line change @@ -191,6 +191,11 @@ fragment("t AT TIME ZONE")
191
191
## ^^^^^^ keyword.other.DML.sql
192
192
## ^^^^^^ -constant.other.table-name
193
193
194
+ sql ( "CREATE TYPE t AS ENUM" )
195
+ # ^ variable.other
196
+ # ^^^^ keyword.other
197
+ # ^ -keyword.other
198
+
194
199
sql ( """
195
200
SELECT * FROM "table" AS t WHERE t."f i e l d"
196
201
# ^^^^^^^^^^^ string.quoted.double.sql
You can’t perform that action at this time.
0 commit comments