diff options
author | Blaž Hrastnik | 2021-09-06 05:33:02 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-09-06 06:25:46 +0000 |
commit | d85a8adb2747e25589de82d821cd0c4e2dd244f5 (patch) | |
tree | aa05a937516d281cad7d1ae7b9fe40408e177376 /runtime | |
parent | be81f40df8c901f506708a2ce4ff10632fa1d64c (diff) |
Improve highlighting scopes
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/haskell/highlights.scm | 14 | ||||
-rw-r--r-- | runtime/queries/lua/highlights.scm | 2 | ||||
-rw-r--r-- | runtime/queries/ocaml/highlights.scm | 4 |
3 files changed, 11 insertions, 9 deletions
diff --git a/runtime/queries/haskell/highlights.scm b/runtime/queries/haskell/highlights.scm index ecaa2d2c..dada80b6 100644 --- a/runtime/queries/haskell/highlights.scm +++ b/runtime/queries/haskell/highlights.scm @@ -2,19 +2,19 @@ (operator) @operator (exp_name (constructor) @constructor) (constructor_operator) @operator -(module) @module_name +(module) @namespace (type) @type (type) @class (constructor) @constructor (pragma) @pragma (comment) @comment (signature name: (variable) @fun_type_name) -(function name: (variable) @fun_name) +(function name: (variable) @function) (constraint class: (class_name (type)) @class) (class (class_head class: (class_name (type)) @class)) (instance (instance_head class: (class_name (type)) @class)) -(integer) @literal -(exp_literal (float)) @literal +(integer) @number +(exp_literal (float)) @number (char) @literal (con_unit) @literal (con_list) @literal @@ -39,5 +39,7 @@ "do" @keyword "mdo" @keyword "rec" @keyword -"(" @paren -")" @paren +[ + "(" + ")" +] @punctuation.bracket diff --git a/runtime/queries/lua/highlights.scm b/runtime/queries/lua/highlights.scm index 756ab3b7..40c2be70 100644 --- a/runtime/queries/lua/highlights.scm +++ b/runtime/queries/lua/highlights.scm @@ -65,7 +65,7 @@ "not" "and" "or" -] @keyword.operator +] @operator [ "=" diff --git a/runtime/queries/ocaml/highlights.scm b/runtime/queries/ocaml/highlights.scm index 3bb42604..5554574d 100644 --- a/runtime/queries/ocaml/highlights.scm +++ b/runtime/queries/ocaml/highlights.scm @@ -60,7 +60,7 @@ [(number) (signed_number)] @number -(character) @character +(character) @constant.builtin.character (string) @string @@ -92,7 +92,7 @@ ["include" "open"] @include -["for" "to" "downto" "while" "do" "done"] @keyword.control.loop +["for" "to" "downto" "while" "do" "done"] @keyword.control.repeat ; Macros ;------- |