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:
Fredrik Ekre 2024-11-22 13:54:32 +01:00 committed by Christian Clason
parent 2d816bb49e
commit fcd2a5fea9
2 changed files with 4 additions and 0 deletions

View file

@ -328,6 +328,8 @@
(macro_definition)
(module_definition)
(struct_definition)
(call_expression)
(identifier)
])
[

View file

@ -10,6 +10,8 @@
(macro_definition)
(assignment)
(const_statement)
(call_expression)
(identifier)
]
(#set! injection.language "markdown"))