Commit graph

20 commits

Author SHA1 Message Date
Fredrik Ekre
fcd2a5fea9 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
```
2024-11-22 14:07:51 +01:00
Fredrik Ekre
2d816bb49e fix(julia): fix injection queries
This patch fixes the julia `(string_literal)` injection queries after
the breaking changes in
https://github.com/tree-sitter/tree-sitter-julia/pull/153. The queries
are simplified by the fact that string content is now directly available
as a separate `(content)` child node.
2024-11-22 13:33:54 +01:00
Sergio Alejandro Vargas
9e66d5c72d fix(julia): macro definition docstrings
Inject markdown in macro definition docstrings.
2024-08-07 00:34:56 +02:00
Dheepak Krishnamurthy
a0732ca9f0 feat(julia): Add syntax highlighting for markdown and bash prefixed_string_literals 2024-07-24 09:14:14 +02:00
Sergio A. Vargas
d2f4c78303
fix(julia): adapt queries to grammar changes (#6429) 2024-04-14 14:23:46 +02:00
Pham Huy Hoang
57a8acf0c4 chore: query formatting 2024-01-19 16:58:37 +01:00
Pham Huy Hoang
78b54eb7f6 chore(injections)!: update injection syntax to 0.9
Since 0.9, @lang syntax is still available as fallback but will soon be deprecated.
Because of that, new syntax should be adopted once 0.9 becomes the
baseline requirements for nvim-treesitter

- update health check
- update doc
2023-08-12 17:34:15 +02:00
Long Wang
b4b94ec387 feat(julia): highlight docstrings before short function definitions 2023-07-11 21:40:37 +02:00
Sergio Alejandro Vargas
dcf46d07cc Update Julia queries 2023-07-08 11:24:01 +02:00
Amaan Qureshi
85330918f0 perf: remove match where possible 2023-04-21 18:24:17 -04:00
Sergio A. Vargas
d31c71c959
julia: update queries to parser change (#3956) 2022-12-14 09:06:08 +01:00
ObserverOfTime
e973a5cbb2 injections(julia): add markdown 2022-11-27 17:35:10 +01:00
ObserverOfTime
9018fb26cc injections: add more regex injections 2022-11-27 17:35:10 +01:00
Christian Clason
b2807559e3 julia: update queries to parser changes 2022-04-15 12:15:18 +02:00
koalp
c6afb729b9 highlights(julia): add highlight for block comments 2022-01-13 17:56:06 +01:00
Santos Gallegos
c1f61d4ca1
Improve check-queries (#1253)
- Add checks for injections.
- Allow queries that start with [A-Z] for highlights only.
- Don't stop on the first error, finish checking all queries.
2021-05-31 17:03:27 +00:00
Santos Gallegos
67f0857015 Revert "Comment: use @combined to create just one tree per buffer (#1252)"
This reverts commit 4a7a713c52.
2021-05-07 16:51:57 +02:00
Santos Gallegos
4a7a713c52
Comment: use @combined to create just one tree per buffer (#1252)
* Comment: use `@combined` to create just one tree per buffer

There is no need to create a tree per line/block for comments.
Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251

* Add injections for scss

* Fix jsonc

* Combine jsdoc
2021-04-28 07:19:07 -05:00
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags (#893)
Closes #236
2021-03-12 11:21:46 -05:00
Stephan Seitz
14d004773f Julia highlights: Add markdown injection for docstrings 2021-01-03 19:05:02 +01:00