aboutsummaryrefslogtreecommitdiffstats
path: root/queries/go
diff options
context:
space:
mode:
authorViorel Craescu <vcraescu@users.noreply.github.com>2022-07-09 14:35:10 +0300
committerGitHub <noreply@github.com>2022-07-09 11:35:10 +0000
commit32e033a8f5eade7afb3fbaae8f8e592302aaee00 (patch)
tree6526232a200e2c996b9e9be9f39fd4a6940bf571 /queries/go
parentfix(exception): erlang exception (#3150) (diff)
downloadnvim-treesitter-32e033a8f5eade7afb3fbaae8f8e592302aaee00.tar
nvim-treesitter-32e033a8f5eade7afb3fbaae8f8e592302aaee00.tar.gz
nvim-treesitter-32e033a8f5eade7afb3fbaae8f8e592302aaee00.tar.bz2
nvim-treesitter-32e033a8f5eade7afb3fbaae8f8e592302aaee00.tar.lz
nvim-treesitter-32e033a8f5eade7afb3fbaae8f8e592302aaee00.tar.xz
nvim-treesitter-32e033a8f5eade7afb3fbaae8f8e592302aaee00.tar.zst
nvim-treesitter-32e033a8f5eade7afb3fbaae8f8e592302aaee00.zip
add method spec highlight and block folds (#3151)
Diffstat (limited to 'queries/go')
-rw-r--r--queries/go/folds.scm1
-rw-r--r--queries/go/highlights.scm3
2 files changed, 4 insertions, 0 deletions
diff --git a/queries/go/folds.scm b/queries/go/folds.scm
index c79d45720..fef75cd8e 100644
--- a/queries/go/folds.scm
+++ b/queries/go/folds.scm
@@ -9,5 +9,6 @@
(method_declaration)
(type_declaration)
(var_declaration)
+ (block)
] @fold
diff --git a/queries/go/highlights.scm b/queries/go/highlights.scm
index ccd094f2f..2666602ac 100644
--- a/queries/go/highlights.scm
+++ b/queries/go/highlights.scm
@@ -38,6 +38,9 @@
(method_declaration
name: (field_identifier) @method)
+(method_spec
+ name: (field_identifier) @method)
+
; Operators
[