mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(julia): capture docstrings in more cases
This patch enables `@string.documentation` capturing, and markdown injection, for strings attached to `(call_expression)` and `(identifier)` nodes. For example ```julia "docs" foo(::Int, ::Float64) "docs" bar ```
This commit is contained in:
parent
2d816bb49e
commit
fcd2a5fea9
2 changed files with 4 additions and 0 deletions
|
|
@ -328,6 +328,8 @@
|
|||
(macro_definition)
|
||||
(module_definition)
|
||||
(struct_definition)
|
||||
(call_expression)
|
||||
(identifier)
|
||||
])
|
||||
|
||||
[
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
(macro_definition)
|
||||
(assignment)
|
||||
(const_statement)
|
||||
(call_expression)
|
||||
(identifier)
|
||||
]
|
||||
(#set! injection.language "markdown"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue