2023-01-08 01:56:27 -05:00
|
|
|
; Types
|
2023-04-24 19:10:49 -04:00
|
|
|
(class_identifier
|
|
|
|
|
(identifier) @type)
|
2023-01-08 01:56:27 -05:00
|
|
|
|
|
|
|
|
(primitive_type) @type.builtin
|
|
|
|
|
|
2023-04-24 19:10:49 -04:00
|
|
|
((class_identifier
|
2024-01-06 15:05:50 +09:00
|
|
|
.
|
|
|
|
|
(identifier) @_first @type.builtin
|
|
|
|
|
(identifier) @type.builtin)
|
2023-04-24 19:10:49 -04:00
|
|
|
(#any-of? @_first "android" "dalvik" "java" "kotlinx"))
|
|
|
|
|
|
|
|
|
|
((class_identifier
|
2024-01-06 15:05:50 +09:00
|
|
|
.
|
|
|
|
|
(identifier) @_first @type.builtin
|
|
|
|
|
.
|
|
|
|
|
(identifier) @_second @type.builtin
|
|
|
|
|
(identifier) @type.builtin)
|
2023-04-24 19:10:49 -04:00
|
|
|
(#eq? @_first "com")
|
|
|
|
|
(#any-of? @_second "android" "google"))
|
2023-01-08 01:56:27 -05:00
|
|
|
|
|
|
|
|
; Methods
|
2023-02-20 08:10:43 -05:00
|
|
|
(method_definition
|
2024-01-06 15:05:50 +09:00
|
|
|
(method_signature
|
|
|
|
|
(method_identifier) @function.method))
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2023-02-20 08:10:43 -05:00
|
|
|
(expression
|
2023-01-08 01:56:27 -05:00
|
|
|
(opcode) @_invoke
|
2024-01-06 15:05:50 +09:00
|
|
|
(body
|
|
|
|
|
(full_method_signature
|
|
|
|
|
(method_signature
|
|
|
|
|
(method_identifier) @function.method.call)))
|
2023-01-08 01:56:27 -05:00
|
|
|
(#lua-match? @_invoke "^invoke"))
|
|
|
|
|
|
2023-02-20 08:10:43 -05:00
|
|
|
(method_handle
|
|
|
|
|
(full_method_signature
|
2024-01-06 15:05:50 +09:00
|
|
|
(method_signature
|
|
|
|
|
(method_identifier) @function.method.call)))
|
2023-02-20 08:10:43 -05:00
|
|
|
|
|
|
|
|
(custom_invoke
|
2024-01-06 15:05:50 +09:00
|
|
|
.
|
|
|
|
|
(identifier) @function.method.call
|
|
|
|
|
(method_signature
|
|
|
|
|
(method_identifier) @function.method.call))
|
2023-02-20 08:10:43 -05:00
|
|
|
|
|
|
|
|
(annotation_value
|
|
|
|
|
(body
|
2024-01-06 15:05:50 +09:00
|
|
|
(method_signature
|
|
|
|
|
(method_identifier) @function.method.call)))
|
2023-02-20 08:10:43 -05:00
|
|
|
|
|
|
|
|
(annotation_value
|
|
|
|
|
(body
|
|
|
|
|
(full_method_signature
|
2024-01-06 15:05:50 +09:00
|
|
|
(method_signature
|
|
|
|
|
(method_identifier) @function.method.call))))
|
2023-02-20 08:10:43 -05:00
|
|
|
|
|
|
|
|
(field_definition
|
2024-01-06 15:05:50 +09:00
|
|
|
(body
|
|
|
|
|
(method_signature
|
|
|
|
|
(method_identifier) @function.method.call)))
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2023-02-20 08:10:43 -05:00
|
|
|
(field_definition
|
2024-01-06 15:05:50 +09:00
|
|
|
(body
|
|
|
|
|
(full_method_signature
|
|
|
|
|
(method_signature
|
|
|
|
|
(method_identifier) @function.method.call))))
|
2023-02-20 08:10:43 -05:00
|
|
|
|
2023-04-17 22:24:59 -04:00
|
|
|
((method_identifier) @constructor
|
2023-02-20 08:10:43 -05:00
|
|
|
(#any-of? @constructor "<init>" "<clinit>"))
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2023-04-24 19:10:49 -04:00
|
|
|
"constructor" @constructor
|
|
|
|
|
|
2023-01-08 01:56:27 -05:00
|
|
|
; Fields
|
2024-01-09 11:50:31 +02:00
|
|
|
(field_identifier) @variable.member
|
|
|
|
|
|
2024-01-10 18:05:37 +02:00
|
|
|
(annotation_key) @variable.member
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2023-04-24 19:10:49 -04:00
|
|
|
((field_identifier) @constant
|
|
|
|
|
(#lua-match? @constant "^[%u_]*$"))
|
|
|
|
|
|
2023-01-08 01:56:27 -05:00
|
|
|
; Variables
|
2023-02-20 08:10:43 -05:00
|
|
|
(variable) @variable.builtin
|
|
|
|
|
|
|
|
|
|
(local_directive
|
|
|
|
|
(identifier) @variable)
|
|
|
|
|
|
|
|
|
|
; Parameters
|
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) @variable.parameter.builtin
|
2024-01-06 15:05:50 +09: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
|
|
|
(param_identifier) @variable.parameter
|
2023-01-08 01:56:27 -05:00
|
|
|
|
|
|
|
|
; Labels
|
2023-02-20 08:10:43 -05:00
|
|
|
[
|
|
|
|
|
(label)
|
|
|
|
|
(jmp_label)
|
|
|
|
|
] @label
|
2023-01-08 01:56:27 -05:00
|
|
|
|
|
|
|
|
; Operators
|
|
|
|
|
(opcode) @keyword.operator
|
|
|
|
|
|
|
|
|
|
((opcode) @keyword.return
|
2023-02-20 08:10:43 -05:00
|
|
|
(#lua-match? @keyword.return "^return"))
|
|
|
|
|
|
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
|
|
|
((opcode) @keyword.conditional
|
|
|
|
|
(#lua-match? @keyword.conditional "^if"))
|
2023-04-21 04:06:20 -04: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
|
|
|
((opcode) @keyword.conditional
|
|
|
|
|
(#lua-match? @keyword.conditional "^cmp"))
|
2023-01-08 01:56:27 -05: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
|
|
|
((opcode) @keyword.exception
|
|
|
|
|
(#lua-match? @keyword.exception "^throw"))
|
2023-02-20 08:10:43 -05:00
|
|
|
|
2023-04-24 19:10:49 -04:00
|
|
|
((opcode) @comment
|
|
|
|
|
(#eq? @comment "nop")) ; haha, anyone get it? ;)
|
|
|
|
|
|
2023-02-20 08:10:43 -05:00
|
|
|
[
|
|
|
|
|
"="
|
|
|
|
|
".."
|
|
|
|
|
] @operator
|
2023-01-08 01:56:27 -05:00
|
|
|
|
|
|
|
|
; Keywords
|
|
|
|
|
[
|
|
|
|
|
".class"
|
|
|
|
|
".super"
|
|
|
|
|
".implements"
|
|
|
|
|
".field"
|
2023-02-20 08:10:43 -05:00
|
|
|
".end field"
|
2023-01-08 01:56:27 -05:00
|
|
|
".annotation"
|
2023-02-20 08:10:43 -05:00
|
|
|
".end annotation"
|
2023-01-08 01:56:27 -05:00
|
|
|
".subannotation"
|
2023-02-20 08:10:43 -05:00
|
|
|
".end subannotation"
|
2023-01-08 01:56:27 -05:00
|
|
|
".param"
|
2023-02-20 08:10:43 -05:00
|
|
|
".end param"
|
|
|
|
|
".parameter"
|
|
|
|
|
".end parameter"
|
2023-01-08 01:56:27 -05:00
|
|
|
".line"
|
|
|
|
|
".locals"
|
2023-02-20 08:10:43 -05:00
|
|
|
".local"
|
|
|
|
|
".end local"
|
|
|
|
|
".restart local"
|
2023-01-08 01:56:27 -05:00
|
|
|
".registers"
|
|
|
|
|
".packed-switch"
|
|
|
|
|
".end packed-switch"
|
|
|
|
|
".sparse-switch"
|
|
|
|
|
".end sparse-switch"
|
|
|
|
|
".array-data"
|
|
|
|
|
".end array-data"
|
|
|
|
|
".enum"
|
2023-02-20 08:10:43 -05:00
|
|
|
(prologue_directive)
|
|
|
|
|
(epilogue_directive)
|
2023-01-08 01:56:27 -05:00
|
|
|
] @keyword
|
|
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
".source" @keyword.import
|
2023-04-24 19:10:49 -04:00
|
|
|
|
2023-01-09 15:10:07 -05:00
|
|
|
[
|
|
|
|
|
".method"
|
2023-02-20 08:10:43 -05:00
|
|
|
".end method"
|
2023-01-09 15:10:07 -05:00
|
|
|
] @keyword.function
|
|
|
|
|
|
2023-04-24 19:10:49 -04:00
|
|
|
[
|
|
|
|
|
".catch"
|
|
|
|
|
".catchall"
|
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.exception
|
2023-04-24 19:10:49 -04:00
|
|
|
|
2023-01-08 01:56:27 -05:00
|
|
|
; Literals
|
2023-02-20 08:10:43 -05:00
|
|
|
(string) @string
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(source_directive
|
|
|
|
|
(string
|
|
|
|
|
"\""
|
|
|
|
|
_ @string.special.url
|
|
|
|
|
"\""))
|
|
|
|
|
|
2023-02-20 08:10:43 -05:00
|
|
|
(escape_sequence) @string.escape
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2023-02-20 08:10:43 -05:00
|
|
|
(character) @character
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2023-04-24 19:10:49 -04:00
|
|
|
"L" @character.special
|
|
|
|
|
|
2023-02-20 08:10:43 -05:00
|
|
|
(number) @number
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2023-02-20 08:10:43 -05:00
|
|
|
[
|
2024-01-06 15:05:50 +09:00
|
|
|
(float)
|
|
|
|
|
(NaN)
|
|
|
|
|
(Infinity)
|
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
|
|
|
] @number.float
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2023-02-20 08:10:43 -05:00
|
|
|
(boolean) @boolean
|
|
|
|
|
|
|
|
|
|
(null) @constant.builtin
|
2023-01-08 01:56:27 -05:00
|
|
|
|
|
|
|
|
; Misc
|
2024-03-16 14:23:57 +09:00
|
|
|
(annotation_visibility) @keyword.modifier
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2024-03-08 19:09:51 +09:00
|
|
|
(access_modifier) @keyword.modifier
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2023-02-20 08:10:43 -05:00
|
|
|
(array_type
|
|
|
|
|
"[" @punctuation.special)
|
|
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
[
|
|
|
|
|
"{"
|
|
|
|
|
"}"
|
|
|
|
|
] @punctuation.bracket
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
[
|
|
|
|
|
"("
|
|
|
|
|
")"
|
|
|
|
|
] @punctuation.bracket
|
2023-02-20 08:10:43 -05:00
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"->"
|
|
|
|
|
","
|
2023-04-24 19:10:49 -04:00
|
|
|
":"
|
|
|
|
|
";"
|
2023-02-20 08:10:43 -05:00
|
|
|
"@"
|
2023-04-24 19:10:49 -04:00
|
|
|
"/"
|
2023-02-20 08:10:43 -05:00
|
|
|
] @punctuation.delimiter
|
2023-01-08 01:56:27 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(line_directive
|
|
|
|
|
(number) @string.special)
|
2023-04-24 19:10:49 -04:00
|
|
|
|
2023-01-08 01:56:27 -05:00
|
|
|
; Comments
|
|
|
|
|
(comment) @comment @spell
|
2023-03-02 08:06:35 -05:00
|
|
|
|
|
|
|
|
(class_definition
|
|
|
|
|
(comment) @comment.documentation)
|