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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
; Lower priority to prefer @variable.parameter when identifier appears in parameter_declaration.
|
2024-01-06 15:05:50 +09:00
|
|
|
((identifier) @variable
|
2024-07-27 16:28:19 -07:00
|
|
|
(#set! priority 95))
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(preproc_def
|
|
|
|
|
(preproc_arg) @variable)
|
2020-09-12 20:57:01 +02:00
|
|
|
|
2020-08-15 09:24:24 -05:00
|
|
|
[
|
2020-07-04 22:00:59 +02:00
|
|
|
"default"
|
2020-07-16 09:30:15 +02:00
|
|
|
"goto"
|
2023-07-27 03:51:13 -04:00
|
|
|
"asm"
|
|
|
|
|
"__asm__"
|
2020-07-04 22:00:59 +02:00
|
|
|
] @keyword
|
|
|
|
|
|
2024-04-23 12:23:15 -07:00
|
|
|
[
|
|
|
|
|
"enum"
|
|
|
|
|
"struct"
|
|
|
|
|
"union"
|
|
|
|
|
"typedef"
|
|
|
|
|
] @keyword.type
|
|
|
|
|
|
2023-07-27 03:51:13 -04:00
|
|
|
[
|
|
|
|
|
"sizeof"
|
|
|
|
|
"offsetof"
|
|
|
|
|
] @keyword.operator
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(alignof_expression
|
|
|
|
|
.
|
|
|
|
|
_ @keyword.operator)
|
2022-10-22 11:07:47 +03:00
|
|
|
|
2021-07-04 20:24:25 +03:00
|
|
|
"return" @keyword.return
|
2021-07-04 19:55:59 +03:00
|
|
|
|
2020-07-06 23:01:46 +02:00
|
|
|
[
|
2020-07-04 22:00:59 +02:00
|
|
|
"while"
|
|
|
|
|
"for"
|
|
|
|
|
"do"
|
|
|
|
|
"continue"
|
|
|
|
|
"break"
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
] @keyword.repeat
|
2020-07-04 22:00:59 +02:00
|
|
|
|
|
|
|
|
[
|
2024-01-06 15:05:50 +09:00
|
|
|
"if"
|
|
|
|
|
"else"
|
|
|
|
|
"case"
|
|
|
|
|
"switch"
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
] @keyword.conditional
|
2020-07-04 22:00:59 +02:00
|
|
|
|
2020-06-27 21:06:11 +02:00
|
|
|
[
|
|
|
|
|
"#if"
|
|
|
|
|
"#ifdef"
|
|
|
|
|
"#ifndef"
|
|
|
|
|
"#else"
|
|
|
|
|
"#elif"
|
|
|
|
|
"#endif"
|
2023-07-27 03:51:13 -04:00
|
|
|
"#elifdef"
|
|
|
|
|
"#elifndef"
|
2020-06-27 21:06:11 +02:00
|
|
|
(preproc_directive)
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
] @keyword.directive
|
2020-05-15 11:45:25 +02:00
|
|
|
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
"#define" @keyword.directive.define
|
2022-10-22 11:07:47 +03:00
|
|
|
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
"#include" @keyword.import
|
2020-09-12 20:10:43 +02:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
[
|
|
|
|
|
";"
|
|
|
|
|
":"
|
|
|
|
|
","
|
2025-03-18 10:01:20 -07:00
|
|
|
"."
|
2024-01-06 15:05:50 +09:00
|
|
|
"::"
|
|
|
|
|
] @punctuation.delimiter
|
2022-07-08 07:00:56 +00:00
|
|
|
|
|
|
|
|
"..." @punctuation.special
|
|
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
[
|
|
|
|
|
"("
|
|
|
|
|
")"
|
|
|
|
|
"["
|
|
|
|
|
"]"
|
|
|
|
|
"{"
|
|
|
|
|
"}"
|
|
|
|
|
] @punctuation.bracket
|
2022-07-08 07:00:56 +00:00
|
|
|
|
2020-07-04 22:00:59 +02:00
|
|
|
[
|
2020-07-06 23:01:46 +02:00
|
|
|
"="
|
2020-07-04 22:00:59 +02:00
|
|
|
"-"
|
|
|
|
|
"*"
|
|
|
|
|
"/"
|
|
|
|
|
"+"
|
2020-07-20 08:56:27 +02:00
|
|
|
"%"
|
2020-07-06 23:01:46 +02:00
|
|
|
"~"
|
|
|
|
|
"|"
|
|
|
|
|
"&"
|
2020-08-27 01:17:44 +02:00
|
|
|
"^"
|
2020-07-06 23:01:46 +02:00
|
|
|
"<<"
|
|
|
|
|
">>"
|
|
|
|
|
"->"
|
2020-07-04 22:00:59 +02:00
|
|
|
"<"
|
|
|
|
|
"<="
|
|
|
|
|
">="
|
2020-07-06 23:01:46 +02:00
|
|
|
">"
|
|
|
|
|
"=="
|
|
|
|
|
"!="
|
2020-07-04 22:00:59 +02:00
|
|
|
"!"
|
2020-07-06 23:01:46 +02:00
|
|
|
"&&"
|
2020-07-04 22:00:59 +02:00
|
|
|
"||"
|
|
|
|
|
"-="
|
|
|
|
|
"+="
|
|
|
|
|
"*="
|
|
|
|
|
"/="
|
2020-07-20 08:56:27 +02:00
|
|
|
"%="
|
2020-07-04 22:00:59 +02:00
|
|
|
"|="
|
|
|
|
|
"&="
|
2020-08-27 01:17:44 +02:00
|
|
|
"^="
|
2021-01-06 16:41:57 +01:00
|
|
|
">>="
|
|
|
|
|
"<<="
|
2020-07-06 23:01:46 +02:00
|
|
|
"--"
|
|
|
|
|
"++"
|
2020-07-04 22:00:59 +02:00
|
|
|
] @operator
|
|
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; Make sure the comma operator is given a highlight group after the comma
|
|
|
|
|
; punctuator so the operator is highlighted properly.
|
|
|
|
|
(comma_expression
|
|
|
|
|
"," @operator)
|
2022-07-08 07:00:56 +00:00
|
|
|
|
2020-07-06 23:01:46 +02:00
|
|
|
[
|
2023-07-27 03:51:13 -04:00
|
|
|
(true)
|
|
|
|
|
(false)
|
2020-07-06 23:01:46 +02:00
|
|
|
] @boolean
|
|
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(conditional_expression
|
|
|
|
|
[
|
|
|
|
|
"?"
|
|
|
|
|
":"
|
|
|
|
|
] @keyword.conditional.ternary)
|
2020-07-06 23:01:46 +02:00
|
|
|
|
2020-05-15 11:45:25 +02:00
|
|
|
(string_literal) @string
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2020-05-15 11:45:25 +02:00
|
|
|
(system_lib_string) @string
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2021-04-30 11:34:25 +02:00
|
|
|
(escape_sequence) @string.escape
|
2020-05-15 11:45:25 +02:00
|
|
|
|
|
|
|
|
(null) @constant.builtin
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2020-05-15 11:45:25 +02:00
|
|
|
(number_literal) @number
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2021-04-21 11:27:49 +02:00
|
|
|
(char_literal) @character
|
2020-05-15 11:45:25 +02:00
|
|
|
|
2023-06-05 14:09:44 +02:00
|
|
|
(preproc_defined) @function.macro
|
2020-05-15 11:45:25 +02:00
|
|
|
|
2024-01-05 03:19:54 +09:00
|
|
|
((field_expression
|
2024-01-06 15:05:50 +09:00
|
|
|
(field_identifier) @property) @_parent
|
2025-07-21 19:09:00 -07:00
|
|
|
(#not-has-parent? @_parent function_declarator call_expression))
|
2020-11-19 09:50:47 -06:00
|
|
|
|
2022-05-24 00:56:28 +02:00
|
|
|
(field_designator) @property
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2024-01-05 03:19:54 +09:00
|
|
|
((field_identifier) @property
|
2024-01-06 15:05:50 +09:00
|
|
|
(#has-ancestor? @property field_declaration)
|
|
|
|
|
(#not-has-ancestor? @property function_declarator))
|
2020-11-19 09:50:47 -06:00
|
|
|
|
2020-05-15 11:45:25 +02:00
|
|
|
(statement_identifier) @label
|
|
|
|
|
|
2024-02-25 19:49:49 -08:00
|
|
|
(declaration
|
|
|
|
|
type: (type_identifier) @_type
|
|
|
|
|
declarator: (identifier) @label
|
|
|
|
|
(#eq? @_type "__label__"))
|
|
|
|
|
|
2020-07-06 23:01:46 +02:00
|
|
|
[
|
2024-01-06 15:05:50 +09:00
|
|
|
(type_identifier)
|
|
|
|
|
(type_descriptor)
|
2021-09-17 01:01:28 +02:00
|
|
|
] @type
|
2020-07-06 23:01:46 +02:00
|
|
|
|
2024-03-16 14:23:57 +09:00
|
|
|
(storage_class_specifier) @keyword.modifier
|
2022-10-22 11:07:47 +03:00
|
|
|
|
2023-07-27 03:51:13 -04:00
|
|
|
[
|
2023-08-10 15:43:25 -04:00
|
|
|
(type_qualifier)
|
2023-07-27 03:51:13 -04:00
|
|
|
(gnu_asm_qualifier)
|
2023-08-10 15:43:25 -04:00
|
|
|
"__extension__"
|
2024-03-08 19:09:51 +09:00
|
|
|
] @keyword.modifier
|
2022-10-22 11:07:47 +03:00
|
|
|
|
2023-01-26 17:30:07 +02:00
|
|
|
(linkage_specification
|
2024-03-16 14:23:57 +09:00
|
|
|
"extern" @keyword.modifier)
|
2023-01-26 17:30:07 +02:00
|
|
|
|
2022-10-22 11:07:47 +03:00
|
|
|
(type_definition
|
|
|
|
|
declarator: (type_identifier) @type.definition)
|
2020-05-23 21:02:43 +02:00
|
|
|
|
2022-11-28 00:17:52 +01:00
|
|
|
(primitive_type) @type.builtin
|
|
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(sized_type_specifier
|
|
|
|
|
_ @type.builtin
|
|
|
|
|
type: _?)
|
2023-04-21 00:39:21 -04:00
|
|
|
|
2020-05-15 11:45:25 +02:00
|
|
|
((identifier) @constant
|
2023-07-27 07:00:35 -04:00
|
|
|
(#lua-match? @constant "^[A-Z][A-Z0-9_]+$"))
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(preproc_def
|
|
|
|
|
(preproc_arg) @constant
|
|
|
|
|
(#lua-match? @constant "^[A-Z][A-Z0-9_]+$"))
|
|
|
|
|
|
2021-12-16 02:58:50 +01:00
|
|
|
(enumerator
|
|
|
|
|
name: (identifier) @constant)
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2021-12-20 14:50:59 +01:00
|
|
|
(case_statement
|
|
|
|
|
value: (identifier) @constant)
|
2020-05-15 11:45:25 +02:00
|
|
|
|
2022-10-02 13:20:18 +03:00
|
|
|
((identifier) @constant.builtin
|
2024-01-05 03:19:54 +09:00
|
|
|
; format-ignore
|
2023-08-10 15:43:25 -04:00
|
|
|
(#any-of? @constant.builtin
|
|
|
|
|
"stderr" "stdin" "stdout"
|
|
|
|
|
"__FILE__" "__LINE__" "__DATE__" "__TIME__"
|
|
|
|
|
"__STDC__" "__STDC_VERSION__" "__STDC_HOSTED__"
|
|
|
|
|
"__cplusplus" "__OBJC__" "__ASSEMBLER__"
|
|
|
|
|
"__BASE_FILE__" "__FILE_NAME__" "__INCLUDE_LEVEL__"
|
|
|
|
|
"__TIMESTAMP__" "__clang__" "__clang_major__"
|
|
|
|
|
"__clang_minor__" "__clang_patchlevel__"
|
|
|
|
|
"__clang_version__" "__clang_literal_encoding__"
|
|
|
|
|
"__clang_wide_literal_encoding__"
|
|
|
|
|
"__FUNCTION__" "__func__" "__PRETTY_FUNCTION__"
|
|
|
|
|
"__VA_ARGS__" "__VA_OPT__"))
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(preproc_def
|
|
|
|
|
(preproc_arg) @constant.builtin
|
2024-01-05 03:19:54 +09:00
|
|
|
; format-ignore
|
2023-08-10 15:43:25 -04:00
|
|
|
(#any-of? @constant.builtin
|
|
|
|
|
"stderr" "stdin" "stdout"
|
|
|
|
|
"__FILE__" "__LINE__" "__DATE__" "__TIME__"
|
|
|
|
|
"__STDC__" "__STDC_VERSION__" "__STDC_HOSTED__"
|
|
|
|
|
"__cplusplus" "__OBJC__" "__ASSEMBLER__"
|
|
|
|
|
"__BASE_FILE__" "__FILE_NAME__" "__INCLUDE_LEVEL__"
|
|
|
|
|
"__TIMESTAMP__" "__clang__" "__clang_major__"
|
|
|
|
|
"__clang_minor__" "__clang_patchlevel__"
|
|
|
|
|
"__clang_version__" "__clang_literal_encoding__"
|
|
|
|
|
"__clang_wide_literal_encoding__"
|
|
|
|
|
"__FUNCTION__" "__func__" "__PRETTY_FUNCTION__"
|
|
|
|
|
"__VA_ARGS__" "__VA_OPT__"))
|
|
|
|
|
|
|
|
|
|
(attribute_specifier
|
2024-01-06 15:05:50 +09:00
|
|
|
(argument_list
|
|
|
|
|
(identifier) @variable.builtin))
|
|
|
|
|
|
2024-01-21 22:05:44 +09:00
|
|
|
(attribute_specifier
|
2024-01-06 15:05:50 +09:00
|
|
|
(argument_list
|
|
|
|
|
(call_expression
|
2024-01-21 22:05:44 +09:00
|
|
|
function: (identifier) @variable.builtin)))
|
2023-08-10 15:43:25 -04:00
|
|
|
|
|
|
|
|
((call_expression
|
|
|
|
|
function: (identifier) @function.builtin)
|
|
|
|
|
(#lua-match? @function.builtin "^__builtin_"))
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-08-10 15:43:25 -04:00
|
|
|
((call_expression
|
2024-01-06 15:05:50 +09:00
|
|
|
function: (identifier) @function.builtin)
|
2023-08-10 15:43:25 -04:00
|
|
|
(#has-ancestor? @function.builtin attribute_specifier))
|
2022-10-02 13:20:18 +03:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; Preproc def / undef
|
2020-11-22 22:17:16 +01:00
|
|
|
(preproc_def
|
2024-10-20 10:53:45 -07:00
|
|
|
name: (_) @constant.macro)
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2020-11-22 22:17:16 +01:00
|
|
|
(preproc_call
|
|
|
|
|
directive: (preproc_directive) @_u
|
2024-10-20 10:53:45 -07:00
|
|
|
argument: (_) @constant.macro
|
2020-11-22 22:17:16 +01:00
|
|
|
(#eq? @_u "#undef"))
|
|
|
|
|
|
2024-10-20 10:53:45 -07:00
|
|
|
(preproc_ifdef
|
|
|
|
|
name: (identifier) @constant.macro)
|
|
|
|
|
|
|
|
|
|
(preproc_elifdef
|
|
|
|
|
name: (identifier) @constant.macro)
|
|
|
|
|
|
|
|
|
|
(preproc_defined
|
|
|
|
|
(identifier) @constant.macro)
|
|
|
|
|
|
2021-07-01 15:16:23 -06:00
|
|
|
(call_expression
|
2022-07-25 13:29:18 -03:00
|
|
|
function: (identifier) @function.call)
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2021-07-01 15:16:23 -06:00
|
|
|
(call_expression
|
2024-03-21 20:44:35 +09:00
|
|
|
function: (field_expression
|
|
|
|
|
field: (field_identifier) @function.call))
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2021-07-01 15:16:23 -06:00
|
|
|
(function_declarator
|
|
|
|
|
declarator: (identifier) @function)
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-04-21 00:39:21 -04:00
|
|
|
(function_declarator
|
2024-03-21 20:44:35 +09:00
|
|
|
declarator: (parenthesized_declarator
|
|
|
|
|
(pointer_declarator
|
|
|
|
|
declarator: (field_identifier) @function)))
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2021-07-01 15:16:23 -06:00
|
|
|
(preproc_function_def
|
|
|
|
|
name: (identifier) @function.macro)
|
2020-11-22 22:17:16 +01:00
|
|
|
|
2022-09-26 10:19:02 +01:00
|
|
|
(comment) @comment @spell
|
2020-05-23 21:03:03 +02:00
|
|
|
|
2023-03-02 08:06:35 -05:00
|
|
|
((comment) @comment.documentation
|
|
|
|
|
(#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$"))
|
|
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; Parameters
|
2020-08-15 09:24:24 -05:00
|
|
|
(parameter_declaration
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
declarator: (identifier) @variable.parameter)
|
2020-05-23 21:50:52 +02:00
|
|
|
|
2023-07-27 07:00:35 -04:00
|
|
|
(parameter_declaration
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
declarator: (array_declarator) @variable.parameter)
|
2023-07-27 07:00:35 -04:00
|
|
|
|
2020-08-22 21:17:07 +02:00
|
|
|
(parameter_declaration
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
declarator: (pointer_declarator) @variable.parameter)
|
2020-08-22 21:17:07 +02:00
|
|
|
|
2023-08-12 21:16:08 -04:00
|
|
|
; K&R functions
|
|
|
|
|
; To enable support for K&R functions,
|
|
|
|
|
; add the following lines to your own query config and uncomment them.
|
|
|
|
|
; They are commented out as they'll conflict with C++
|
|
|
|
|
; Note that you'll need to have `; extends` at the top of your query file.
|
|
|
|
|
;
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
; (parameter_list (identifier) @variable.parameter)
|
2023-08-12 21:16:08 -04:00
|
|
|
;
|
|
|
|
|
; (function_definition
|
|
|
|
|
; declarator: _
|
|
|
|
|
; (declaration
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
; declarator: (identifier) @variable.parameter))
|
2023-08-12 21:16:08 -04:00
|
|
|
;
|
|
|
|
|
; (function_definition
|
|
|
|
|
; declarator: _
|
|
|
|
|
; (declaration
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
; declarator: (array_declarator) @variable.parameter))
|
2023-08-12 21:16:08 -04:00
|
|
|
;
|
|
|
|
|
; (function_definition
|
|
|
|
|
; declarator: _
|
|
|
|
|
; (declaration
|
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"
(https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/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`
2023-12-24 10:00:20 +01:00
|
|
|
; declarator: (pointer_declarator) @variable.parameter))
|
2024-01-06 15:05:50 +09:00
|
|
|
(preproc_params
|
|
|
|
|
(identifier) @variable.parameter)
|
2020-05-24 13:40:43 +02:00
|
|
|
|
2021-09-19 15:24:08 +02:00
|
|
|
[
|
|
|
|
|
"__attribute__"
|
2023-07-27 03:51:13 -04:00
|
|
|
"__declspec"
|
|
|
|
|
"__based"
|
2021-09-19 15:24:08 +02:00
|
|
|
"__cdecl"
|
|
|
|
|
"__clrcall"
|
|
|
|
|
"__stdcall"
|
|
|
|
|
"__fastcall"
|
|
|
|
|
"__thiscall"
|
|
|
|
|
"__vectorcall"
|
2023-07-27 03:51:13 -04:00
|
|
|
(ms_pointer_modifier)
|
2022-07-27 22:50:25 +02:00
|
|
|
(attribute_declaration)
|
2021-09-19 15:24:08 +02:00
|
|
|
] @attribute
|