Commit graph

14 commits

Author SHA1 Message Date
ObserverOfTime
310f0925ec feat(c-family): inherit injections 2025-05-12 18:43:40 +02:00
Chad Condon
b781fd0582
fix(c): improve doxygen comment matching (#6278) 2024-03-11 19:02:53 +02:00
Jaehwang Jung
2b6020247d fix(cpp): add back comment injection 2024-02-13 13:16:00 +01:00
Pham Huy Hoang
57a8acf0c4 chore: query formatting 2024-01-19 16:58:37 +01:00
Amaan Qureshi
a4f4fcdd3e feat: add Doxygen 2023-08-26 04:58:36 -04:00
Amaan Qureshi
b5f2030312 chore(c-family): inject all preproc args again 2023-08-13 18:57:23 -04: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
Amaan Qureshi
41f35eac4f fix(c-family): inject into preproc args in preproc defs when it spans multiple lines only 2023-08-11 14:38:50 -04:00
Amaan Qureshi
3d3b335ace fix(cpp): update injections from C 2023-08-10 16:09:50 +02:00
John Drouhard
ed021ac3af injections(cpp): add injections for raw string literals
the delimiter describes the language to use for the injection content

```cpp
auto python_code = R"python(
  import os

  if __name__ == '__main__':
    print(os.name)
)python";
```
2023-01-09 21:41:13 +02: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
Santos Gallegos
72ecefc859 C/CPP: add injections for macros 2021-02-10 22:26:04 +01:00