@@ -71,7 +71,7 @@ fragment(
71
71
# ^ punctuation.separator.arguments
72
72
# ^^^^^^^^^^^^^^^^^^^^ comment.line.double-dash.sql
73
73
# ^ constant.other.placeholder.elixir
74
- # ^^^^^^^^^^ source.ex.sql support .function.psql
74
+ # ^^^^^^^^^^ source.ex.sql variable .function.sql
75
75
# ^^ keyword.operator.jsonb.psql
76
76
# ^ constant.other.placeholder.elixir
77
77
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.ex.sql
@@ -83,7 +83,7 @@ fragment(
83
83
84
84
fragment ( """
85
85
jsonb_to_tsvector('simple', content, '["string", "numeric"]')
86
- # ^^^^^^^^^^^^^^^^^ support .function.psql
86
+ # ^^^^^^^^^^^^^^^^^ variable .function.sql
87
87
""" )
88
88
89
89
fragment ( """\
@@ -104,11 +104,11 @@ fragment(
104
104
# ^ punctuation.separator.arguments
105
105
# ^ punctuation.section.arguments.end
106
106
# ^ constant.other.placeholder.elixir
107
- # ^^^^^^^^ support .function.psql
107
+ # ^^^^^^^^ variable .function.sql
108
108
# ^^^^^^^^^^^ meta.string.elixir source.ex.sql
109
109
# ^^^^^^^^^ meta.string.elixir meta.interpolation.elixir
110
110
# ^^ keyword.operator.psql
111
- # ^^^^^^^^^^^^^^^^^^^^^^^^ support .function.psql
111
+ # ^^^^^^^^^^^^^^^^^^^^^^^^ variable .function.sql
112
112
# ^ variable.language.wildcard.asterisk.sql
113
113
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string.elixir source.ex.sql
114
114
# ^ punctuation.section.arguments.begin
@@ -183,7 +183,21 @@ fragment(
183
183
# ^ punctuation.section.arguments.end
184
184
#^^^ punctuation.definition.string.end
185
185
186
- # All possible keywords. See: https://www.postgresql.org/docs/current/sql-keywords-appendix.html
186
+ sql ( """
187
+ 1IN(.1,0.1,1E10,1E+10,1e-1,1e+1,0001,1)
188
+ # ^^^^ constant.numeric.sql
189
+ # ^^^^ constant.numeric.sql
190
+ # ^^^^ constant.numeric.sql
191
+ # ^^^^ constant.numeric.sql
192
+ # ^^^^ constant.numeric.sql
193
+ # ^^^ constant.numeric.sql
194
+ # ^^ constant.numeric.sql
195
+ # ^^ keyword.other.sql
196
+ # ^ constant.numeric.sql
197
+ """ )
198
+
199
+ # All possible keywords or scalar variables.
200
+ # See: https://www.postgresql.org/docs/current/sql-keywords-appendix.html
187
201
sql ( """
188
202
ALL; AND; ANY; ARRAY; AS; ASYMMETRIC; AUTHORIZATION; BINARY; BOTH;
189
203
# ^^^^ keyword.other.sql
@@ -196,11 +210,19 @@ fragment(
196
210
# ^^^ keyword.operator.logical.sql
197
211
# ^^^ keyword.other.sql
198
212
CASE; CAST; CHECK; COLLATE; COLUMN; CONSTRAINT; CREATE; CROSS;
213
+ # ^^^^^ keyword.other.sql
214
+ # ^^^^^^ keyword.other.sql
215
+ # ^^^^^^^^^^ storage.modifier.sql
216
+ # ^^^^^^ keyword.other.sql
217
+ # ^^^^^^^ keyword.other.sql
218
+ # ^^^^^ storage.modifier.sql
219
+ # ^^^^ keyword.other.sql
220
+ # ^^^^ keyword.other.DML.sql
199
221
CURRENT_CATALOG; CURRENT_DATE; CURRENT_ROLE; CURRENT_SCHEMA;
200
- # ^^^^^^^^^^^^^^ support.function.sql
201
- # ^^^^^^^^^^^^ support.function.sql
222
+ # ^^^^^^^^^^^^^^ support.function.scalar. sql
223
+ # ^^^^^^^^^^^^ support.function.scalar. sql
202
224
# ^^^^^^^^^^^^ support.function.scalar.sql
203
- # ^^^^^^^^^^^^^^^ support.function.sql
225
+ # ^^^^^^^^^^^^^^^ support.function.scalar. sql
204
226
CURRENT_TIME; CURRENT_TIMESTAMP; CURRENT_USER;
205
227
# ^^^^^^^^^^^^ support.function.scalar.sql
206
228
# ^^^^^^^^^^^^^^^^^ support.function.scalar.sql
@@ -237,8 +259,8 @@ fragment(
237
259
# ^^^^ constant.language.sql
238
260
# ^^^ keyword.other.sql
239
261
# ^^^^^^^ keyword.other.sql
240
- # ^^^^^^^^^^^^^^ support.function.sql
241
- # ^^^^^^^^^ support.function.sql
262
+ # ^^^^^^^^^^^^^^ support.function.scalar. sql
263
+ # ^^^^^^^^^ support.function.scalar. sql
242
264
# ^^^^ keyword.operator.logical.sql
243
265
# ^^^^ keyword.other.sql
244
266
ORDER; OUTER; OVERLAPS; PRIMARY; REFERENCES; RIGHT; SELECT; SESSION_USER; SIMILAR;
0 commit comments