Stephan Seitz
cc0e29727a
highlights(cuda): add support for __managed__
...
See https://github.com/tree-sitter-grammars/tree-sitter-cuda/pull/68
2024-04-03 11:11:01 +02:00
Jaehwang Jung
dccf31f9b1
feat(highlights)!: @keyword.storage → @keyword.modifier
2024-03-16 20:51:16 +08:00
Jaehwang Jung
998b230a77
feat(highlights)!: keyword @type.qualifier → @keyword.modifier
2024-03-16 20:51:16 +08:00
Phạm Huy Hoàng
62b0bb4f24
feat(format): extra newline after modeline
2024-02-29 23:05:30 +09:00
Pham Huy Hoang
57a8acf0c4
chore: query formatting
2024-01-19 16:58:37 +01:00
Christian Clason
1ae9b0e455
feat!: align standard captures with upstream
...
Problem: Sharing highlight queries with upstream tree-sitter and
Helix is difficult.
Solution: Where reasonable, use capture names in tree-sitter's standard
list or Helix's Atom-style hierarchy.
Specifically:
* tree-sitter "standard capture names"
(3f44b89685/highlight/src/lib.rs (L20-L72) ):
- `@parameter` -> `@variable.parameter`
- `@field` -> `@variable.member`
- `@namespace` -> `@module`
- `@float` -> `@number.float`
- `@symbol` -> `@string.special.symbol`
- `@string.regex` -> `@string.regexp`
- `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below)
- `@text.title` -> `@markup.heading`
- `@text.literal` -> `@markup.raw`
- `@text.reference` -> `@markup.link`
- `@text.uri` -> `@markup.link.url` (in markup links)
- `@string.special` -> `@markup.link.label` (non-url links)
- `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`)
* Helix captures
(https://docs.helix-editor.com/master/themes.html#syntax-highlighting ):
- `@method` -> `@function.method`
- `@method.call` -> `@function.method.call`
- `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}`
- `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}`
- `@text.uri` -> `@string.special.url` (outside markup)
- `@preproc` -> `@keyword.directive`
- `@define` -> `@keyword.directive`(`.define`?)
- `@storageclass` -> `@keyword.storage`
- `@conditional` -> `@keyword.conditional`
- `@debug` -> `@keyword.debug`
- `@exception` -> `@keyword.exception`
- `@include` -> `@keyword.import`
- `@repeat` -> `@keyword.repeat`
* cleanup
- remove some redundant `@conceal` (but still allow it for conceal-only patterns)
- remove obsolete `@error` (syntax linting is out of scope for this repo)
- sort, cleanup capture list in `CONTRIBUTING.md`
2024-01-19 16:58:37 +01: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
251fe95efd
fix: update preproc injections for arduino, cuda, glsl, hlsl
2023-08-10 16:43:45 +02:00
Stephan Seitz
f0e083912a
highlights(cuda): add __noinline__
2023-02-01 20:40:39 +02:00
Stephan Seitz
c2301adfcb
highlights(cuda): add missing "__global__"
2022-12-31 13:58:33 +01:00
ObserverOfTime
b9729e42c0
highlights(cuda): use more specific groups
2022-11-26 13:17:51 +02:00
Stephan Seitz
a401f6ce7d
highlights(cuda): add __grid_constant__
2022-05-15 10:37:14 +02:00
Stephan Seitz
182efd525c
injections(cuda): add injections.scm
2021-07-20 08:32:58 +02:00
Stephan Seitz
c4a6d93408
highlights(cuda): add support for __launch_bounds__
2021-07-20 08:32:34 +02:00
Stephan Seitz
f280847b78
highlights(cuda): add support for __restrict__
2021-07-06 19:38:58 +02:00
Stephan Seitz
8eb37c4409
parsers: add tree-sitter-cuda
2021-06-14 07:30:51 +02:00