Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/sql/highlights.scm')
| -rw-r--r-- | runtime/queries/sql/highlights.scm | 37 |
1 files changed, 11 insertions, 26 deletions
diff --git a/runtime/queries/sql/highlights.scm b/runtime/queries/sql/highlights.scm index 82397edc..09b07489 100644 --- a/runtime/queries/sql/highlights.scm +++ b/runtime/queries/sql/highlights.scm @@ -24,20 +24,20 @@ (term alias: (identifier) @variable.parameter) -((term +(term value: (cast name: (keyword_cast) @function.builtin - parameter: [(literal)]?))) + parameter: [(literal)]?)) (literal) @string (comment) @comment.line (marginalia) @comment.block ((literal) @constant.numeric.integer - (#match? @constant.numeric.integer "^[-+]?\\d+$")) + (#match? @constant.numeric.integer "^-?\\d+$")) ((literal) @constant.numeric.float - (#match? @constant.numeric.float "^[-+]?\\d*\\.\\d*$")) + (#match? @constant.numeric.float "^-?\\d*\\.\\d*$")) (parameter) @variable.parameter @@ -110,8 +110,6 @@ (keyword_primary) (keyword_delete) (keyword_create) - (keyword_show) - (keyword_unload) (keyword_insert) (keyword_merge) (keyword_distinct) @@ -149,6 +147,9 @@ (keyword_for) (keyword_if) (keyword_exists) + (keyword_max) + (keyword_min) + (keyword_avg) (keyword_column) (keyword_columns) (keyword_cross) @@ -194,6 +195,7 @@ (keyword_current) (keyword_ties) (keyword_others) + (keyword_preserve) (keyword_zerofill) (keyword_format) (keyword_fields) @@ -217,6 +219,7 @@ (keyword_vacuum) (keyword_cache) (keyword_language) + (keyword_sql) (keyword_called) (keyword_conflict) (keyword_declare) @@ -226,6 +229,8 @@ (keyword_name) (keyword_oid) (keyword_oids) + (keyword_options) + (keyword_plpgsql) (keyword_precision) (keyword_regclass) (keyword_regnamespace) @@ -269,7 +274,6 @@ (keyword_out) (keyword_inout) (keyword_variadic) - (keyword_ordinality) (keyword_session) (keyword_isolation) (keyword_level) @@ -300,25 +304,6 @@ (keyword_statement) (keyword_execute) (keyword_procedure) - (keyword_copy) - (keyword_delimiter) - (keyword_encoding) - (keyword_escape) - (keyword_force_not_null) - (keyword_force_null) - (keyword_force_quote) - (keyword_freeze) - (keyword_header) - (keyword_match) - (keyword_program) - (keyword_quote) - (keyword_stdin) - (keyword_extended) - (keyword_main) - (keyword_plain) - (keyword_storage) - (keyword_compression) - (keyword_duplicate) ] @keyword [ |