summaryrefslogtreecommitdiff
path: root/queries
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
parente5995d3643074f044ea1d23ceab660a5c5c2f8ba (diff)
add method spec highlight and block folds (#3151)
Diffstat (limited to 'queries')
-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 c79d4572..fef75cd8 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 ccd094f2..2666602a 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
[