diff options
| author | Viorel Craescu <viorel@craescu.com> | 2022-07-09 15:58:03 +0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-07-09 21:18:03 +0200 |
| commit | eb3f263bfeae31b5aeb3380abec9f38b75173566 (patch) | |
| tree | a830fa8fe737dc3d79cb4cacb75b816dceed61a6 /queries/go | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-eb3f263bfeae31b5aeb3380abec9f38b75173566.tar nvim-treesitter-eb3f263bfeae31b5aeb3380abec9f38b75173566.tar.gz nvim-treesitter-eb3f263bfeae31b5aeb3380abec9f38b75173566.tar.bz2 nvim-treesitter-eb3f263bfeae31b5aeb3380abec9f38b75173566.tar.lz nvim-treesitter-eb3f263bfeae31b5aeb3380abec9f38b75173566.tar.xz nvim-treesitter-eb3f263bfeae31b5aeb3380abec9f38b75173566.tar.zst nvim-treesitter-eb3f263bfeae31b5aeb3380abec9f38b75173566.zip | |
add type def highlight, add field declaration highlight and remove constant highlight
Diffstat (limited to 'queries/go')
| -rw-r--r-- | queries/go/highlights.scm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/queries/go/highlights.scm b/queries/go/highlights.scm index 2666602ac..ee94324c6 100644 --- a/queries/go/highlights.scm +++ b/queries/go/highlights.scm @@ -5,6 +5,7 @@ ; Identifiers (type_identifier) @type +(type_spec name: (type_identifier) @type.definition) (field_identifier) @property (identifier) @variable (package_identifier) @namespace @@ -15,9 +16,6 @@ ((identifier) @constant (#eq? @constant "_")) -((identifier) @constant - (#vim-match? @constant "^[A-Z][A-Z\\d_]+$")) - (const_spec name: (identifier) @constant) @@ -201,6 +199,7 @@ (keyed_element . (literal_element (identifier) @field)) +(field_declaration name: (field_identifier) @field) (comment) @comment |
