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.
Specifically, the pattern `(string_literal) . (identifier)` matches also
for example `"hello"` in

```julia
foo("hello", world)
@info "hello" world
```

To fix this, this patch limits the pattern to top-level statements.
This commit is contained in:
Fredrik Ekre 2024-12-04 11:50:49 +01:00 committed by Christian Clason
parent 3edea87978
commit b0fc560c75

View file

@ -357,9 +357,13 @@
(module_definition)
(struct_definition)
(call_expression)
(identifier)
])
(source_file
(string_literal) @string.documentation
.
(identifier))
[
(line_comment)
(block_comment)