mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(julia): fix incorrect documentation query
This patch fixes an inprecise `@string.documentation` query introduced in https://github.com/nvim-treesitter/nvim-treesitter/pull/7391. The pattern `(string_literal) . (call_expression)` matches also for example `"hello"` in `foo("hello", bar())`. Similarly to https://github.com/nvim-treesitter/nvim-treesitter/pull/7436, this patch limits the pattern to top-level statements.
This commit is contained in:
parent
046b8e9361
commit
acada1a685
1 changed files with 4 additions and 2 deletions
|
|
@ -356,13 +356,15 @@
|
|||
(macro_definition)
|
||||
(module_definition)
|
||||
(struct_definition)
|
||||
(call_expression)
|
||||
])
|
||||
|
||||
(source_file
|
||||
(string_literal) @string.documentation
|
||||
.
|
||||
(identifier))
|
||||
[
|
||||
(identifier)
|
||||
(call_expression)
|
||||
])
|
||||
|
||||
[
|
||||
(line_comment)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue