on master help sign in
Improve highlighting scopes
commitd85a8adb2747e25589de82d821cd0c4e2dd244f5 authorBlaž Hrastnik <blaz@mxxn.io> dateMon 6 Sep 2021, 14:33 (5 years ago) parentbe81f40
3 files changed+11−9
runtime/queries/haskell/highlights.scm+8−6 runtime/queries/lua/highlights.scm+1−1 runtime/queries/ocaml/highlights.scm+2−2
runtime/queries/haskell/highlights.scm+8−6
@@ -2,19 +2,19 @@
22(operator) @operator
33(exp_name (constructor) @constructor)
44(constructor_operator) @operator
5−(module) @module_name
5+(module) @namespace
66(type) @type
77(type) @class
88(constructor) @constructor
99(pragma) @pragma
1010(comment) @comment
1111(signature name: (variable) @fun_type_name)
12−(function name: (variable) @fun_name)
12+(function name: (variable) @function)
1313(constraint class: (class_name (type)) @class)
1414(class (class_head class: (class_name (type)) @class))
1515(instance (instance_head class: (class_name (type)) @class))
16−(integer) @literal
17−(exp_literal (float)) @literal
16+(integer) @number
17+(exp_literal (float)) @number
1818(char) @literal
1919(con_unit) @literal
2020(con_list) @literal
@@ -39,5 +39,7 @@
3939"do" @keyword
4040"mdo" @keyword
4141"rec" @keyword
42−"(" @paren
43−")" @paren
42+[
43+ "("
44+ ")"
45+] @punctuation.bracket
runtime/queries/lua/highlights.scm+1−1
@@ -65,7 +65,7 @@
6565 "not"
6666 "and"
6767 "or"
68−] @keyword.operator
68+] @operator
6969
7070[
7171"="
runtime/queries/ocaml/highlights.scm+2−2
@@ -60,7 +60,7 @@
6060
6161[(number) (signed_number)] @number
6262
63−(character) @character
63+(character) @constant.builtin.character
6464
6565(string) @string
6666
@@ -92,7 +92,7 @@
9292
9393["include" "open"] @include
9494
95−["for" "to" "downto" "while" "do" "done"] @keyword.control.loop
95+["for" "to" "downto" "while" "do" "done"] @keyword.control.repeat
9696
9797; Macros
9898;-------