diff options
Diffstat (limited to 'runtime/queries')
-rw-r--r-- | runtime/queries/purescript/highlights.scm | 23 | ||||
-rw-r--r-- | runtime/queries/sql/highlights.scm | 46 |
2 files changed, 61 insertions, 8 deletions
diff --git a/runtime/queries/purescript/highlights.scm b/runtime/queries/purescript/highlights.scm index b110f3e0..b7868e6e 100644 --- a/runtime/queries/purescript/highlights.scm +++ b/runtime/queries/purescript/highlights.scm @@ -1,4 +1,20 @@ ; ---------------------------------------------------------------------------- +; Record fields would need to come before literal strings in order to be captured correctly + + (record_accessor + field: [ (variable) + (string) + (triple_quote_string) + ] @variable.other.member) + + (exp_record_access + field: [ (variable) + (string) + (triple_quote_string) + ] @variable.other.member) + + +; ---------------------------------------------------------------------------- ; Literals and comments (integer) @constant.numeric.integer @@ -117,8 +133,7 @@ (row_field (field_name) @variable.other.member) (record_field (field_name) @variable.other.member) - (record_accessor (variable) @variable.other.member) - (exp_record_access (variable) @variable.other.member) + (record_field (field_pun) @variable.other.member) (signature name: (variable) @type) (function name: (variable) @function) @@ -126,8 +141,8 @@ (derive_declaration (instance_name) @function) ; true or false -((variable) @constant.builtin.boolean - (#match? @constant.builtin.boolean "^(true|false)$")) + ((variable) @constant.builtin.boolean + (#match? @constant.builtin.boolean "^(true|false)$")) ; The former one works for `tree-sitter highlight` but not in Helix/Kakoune. ; The latter two work in Helix (but not Kakoune) and are a good compromise between not highlighting anything at all diff --git a/runtime/queries/sql/highlights.scm b/runtime/queries/sql/highlights.scm index 1041cc2f..09b07489 100644 --- a/runtime/queries/sql/highlights.scm +++ b/runtime/queries/sql/highlights.scm @@ -131,6 +131,7 @@ (keyword_partition) (keyword_group) (keyword_with) + (keyword_without) (keyword_as) (keyword_having) (keyword_limit) @@ -227,6 +228,7 @@ (keyword_input) (keyword_name) (keyword_oid) + (keyword_oids) (keyword_options) (keyword_plpgsql) (keyword_precision) @@ -264,6 +266,44 @@ (keyword_user) (keyword_valid) (keyword_action) + (keyword_definer) + (keyword_invoker) + (keyword_security) + (keyword_extension) + (keyword_version) + (keyword_out) + (keyword_inout) + (keyword_variadic) + (keyword_session) + (keyword_isolation) + (keyword_level) + (keyword_serializable) + (keyword_repeatable) + (keyword_read) + (keyword_write) + (keyword_committed) + (keyword_uncommitted) + (keyword_deferrable) + (keyword_names) + (keyword_zone) + (keyword_immediate) + (keyword_deferred) + (keyword_constraints) + (keyword_snapshot) + (keyword_characteristics) + (keyword_off) + (keyword_follows) + (keyword_precedes) + (keyword_each) + (keyword_instead) + (keyword_of) + (keyword_initially) + (keyword_old) + (keyword_new) + (keyword_referencing) + (keyword_statement) + (keyword_execute) + (keyword_procedure) ] @keyword [ @@ -373,10 +413,8 @@ ">=" ">" "<>" - "->" - "->>" - "#>" - "#>>" + (op_other) + (op_unary_other) ] @operator [ |