Unnamed repository; edit this file 'description' to name the repository.
Update tree-sitter-v (#13469)
Co-authored-by: Michael Davis <[email protected]>
Sean Russell 10 months ago
parent e53462c · commit 51d3b15
-rw-r--r--languages.toml2
-rw-r--r--runtime/queries/v/highlights.scm8
-rw-r--r--runtime/queries/v/injections.scm2
-rw-r--r--runtime/queries/v/textobjects.scm4
4 files changed, 8 insertions, 8 deletions
diff --git a/languages.toml b/languages.toml
index 13f70db4..9cf7604a 100644
--- a/languages.toml
+++ b/languages.toml
@@ -2407,7 +2407,7 @@ indent = { tab-width = 4, unit = "\t" }
[[grammar]]
name = "v"
-source = {git = "https://github.com/vlang/v-analyzer", subpath = "tree_sitter_v", rev = "e14fdf6e661b10edccc744102e4ccf0b187aa8ad"}
+source = {git = "https://github.com/vlang/v-analyzer", subpath = "tree_sitter_v", rev = "59a8889d84a293d7c0366d14c8dbb0eec24fe889"}
[[language]]
name = "verilog"
diff --git a/runtime/queries/v/highlights.scm b/runtime/queries/v/highlights.scm
index fbaf7088..9ae91d97 100644
--- a/runtime/queries/v/highlights.scm
+++ b/runtime/queries/v/highlights.scm
@@ -1,4 +1,4 @@
-(comment) @comment
+[(line_comment) (block_comment)] @comment
(module_clause
(identifier) @namespace)
@@ -84,9 +84,9 @@
] @string
(string_interpolation
- (braced_interpolation_opening) @punctuation.bracket
- (interpolated_expression) @embedded
- (braced_interpolation_closing) @punctuation.bracket)
+ (interpolation_opening) @punctuation.bracket
+ (interpolation_expression) @embedded
+ (interpolation_closing) @punctuation.bracket)
(attribute) @attribute
diff --git a/runtime/queries/v/injections.scm b/runtime/queries/v/injections.scm
index f698de83..27807f3b 100644
--- a/runtime/queries/v/injections.scm
+++ b/runtime/queries/v/injections.scm
@@ -1,4 +1,4 @@
-((comment) @injection.content
+([(line_comment) (block_comment)] @injection.content
(#set! injection.language "comment"))
((sql_expression) @injection.content
diff --git a/runtime/queries/v/textobjects.scm b/runtime/queries/v/textobjects.scm
index 5015af17..c2f5ecef 100644
--- a/runtime/queries/v/textobjects.scm
+++ b/runtime/queries/v/textobjects.scm
@@ -22,6 +22,6 @@
(struct_field_declaration
((_) @parameter.inside) @parameter.around)
-(comment) @comment.inside
-(comment)+ @comment.around
+[(line_comment) (block_comment)] @comment.inside
+[(line_comment)+ (block_comment)+] @comment.around