feat(go): highlight constructors, remove _ as @constant

This commit is contained in:
Amaan Qureshi 2023-05-01 00:20:51 -04:00
parent dd1cd54622
commit e2cf8977fd

View file

@ -15,9 +15,6 @@
(label_name) @label
((identifier) @constant
(#eq? @constant "_"))
(const_spec
name: (identifier) @constant)
@ -41,6 +38,14 @@
(method_spec
name: (field_identifier) @method)
; Constructors
((call_expression (identifier) @constructor)
(#lua-match? @constructor "^[nN]ew.+$"))
((call_expression (identifier) @constructor)
(#lua-match? @constructor "^[mM]ake.+$"))
; Operators
[