2024-01-06 15:05:50 +09:00
|
|
|
((atom) @constant
|
2024-07-27 16:28:19 -07:00
|
|
|
(#set! priority "90"))
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2022-12-08 19:40:41 +01:00
|
|
|
(var) @variable
|
|
|
|
|
|
|
|
|
|
(char) @character
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2022-12-08 19:40:41 +01:00
|
|
|
(integer) @number
|
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
|
|
|
(float) @number.float
|
2022-12-08 19:40:41 +01:00
|
|
|
|
2023-03-02 08:06:35 -05:00
|
|
|
(comment) @comment @spell
|
|
|
|
|
|
|
|
|
|
((comment) @comment.documentation
|
|
|
|
|
(#lua-match? @comment.documentation "^[%%][%%]"))
|
2022-12-08 19:40:41 +01:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; keyword
|
2022-07-09 16:55:48 +08:00
|
|
|
[
|
|
|
|
|
"fun"
|
|
|
|
|
"div"
|
|
|
|
|
] @keyword
|
2022-12-08 19:40:41 +01:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; bracket
|
2022-07-09 16:55:48 +08:00
|
|
|
[
|
|
|
|
|
"("
|
|
|
|
|
")"
|
|
|
|
|
"{"
|
|
|
|
|
"}"
|
|
|
|
|
"["
|
|
|
|
|
"]"
|
2022-12-08 19:40:41 +01:00
|
|
|
"#"
|
2022-07-09 16:55:48 +08:00
|
|
|
] @punctuation.bracket
|
2022-12-08 19:40:41 +01:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; Comparisons
|
2022-12-08 19:40:41 +01:00
|
|
|
[
|
|
|
|
|
"=="
|
|
|
|
|
"=:="
|
|
|
|
|
"=/="
|
|
|
|
|
"=<"
|
|
|
|
|
">="
|
|
|
|
|
"<"
|
|
|
|
|
">"
|
2024-01-06 15:05:50 +09:00
|
|
|
] @operator ; .comparison
|
2022-12-08 19:40:41 +01:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; operator
|
2022-12-08 19:40:41 +01:00
|
|
|
[
|
|
|
|
|
":"
|
|
|
|
|
":="
|
|
|
|
|
"!"
|
2024-01-06 15:05:50 +09:00
|
|
|
; "-"
|
2022-12-08 19:40:41 +01:00
|
|
|
"+"
|
|
|
|
|
"="
|
|
|
|
|
"->"
|
|
|
|
|
"=>"
|
|
|
|
|
"|"
|
2023-05-06 16:39:30 +08:00
|
|
|
"?="
|
2022-12-08 19:40:41 +01:00
|
|
|
] @operator
|
|
|
|
|
|
2022-07-09 16:55:48 +08:00
|
|
|
[
|
2022-12-08 19:40:41 +01:00
|
|
|
","
|
|
|
|
|
"."
|
|
|
|
|
";"
|
|
|
|
|
] @punctuation.delimiter
|
|
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; conditional
|
2023-05-06 16:39:30 +08:00
|
|
|
[
|
2022-07-09 16:55:48 +08:00
|
|
|
"receive"
|
|
|
|
|
"if"
|
|
|
|
|
"case"
|
|
|
|
|
"of"
|
|
|
|
|
"when"
|
|
|
|
|
"after"
|
2023-10-21 06:00:18 +02:00
|
|
|
"begin"
|
2022-07-09 16:55:48 +08:00
|
|
|
"end"
|
2023-05-06 16:39:30 +08:00
|
|
|
"maybe"
|
|
|
|
|
"else"
|
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
|
2022-07-09 19:33:01 +08:00
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"catch"
|
2022-12-08 19:40:41 +01:00
|
|
|
"try"
|
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
|
2022-07-09 16:55:48 +08:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
((atom) @boolean
|
|
|
|
|
(#any-of? @boolean "true" "false"))
|
2022-07-09 16:55:48 +08:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; Macros
|
|
|
|
|
((macro_call_expr) @constant.macro
|
2024-07-27 16:28:19 -07:00
|
|
|
(#set! priority 101))
|
2022-07-09 16:55:48 +08:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; Preprocessor
|
2022-12-08 19:40:41 +01:00
|
|
|
(pp_define
|
2024-01-06 15:05:50 +09:00
|
|
|
lhs: _ @constant.macro
|
2024-07-27 16:28:19 -07:00
|
|
|
(#set! priority 101))
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2025-05-17 21:10:59 -07:00
|
|
|
((_preprocessor_directive) @keyword.directive
|
|
|
|
|
(#set! priority 99))
|
2022-07-09 16:55:48 +08:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; Attributes
|
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
|
|
|
(pp_include) @keyword.import
|
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
|
|
|
(pp_include_lib) @keyword.import
|
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
|
|
|
(export_attribute) @keyword.import
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2022-12-08 19:40:41 +01:00
|
|
|
(export_type_attribute) @type.definition
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(export_type_attribute
|
2024-03-21 20:44:35 +09:00
|
|
|
types: (fa
|
|
|
|
|
fun: _ @type
|
2024-07-27 16:28:19 -07:00
|
|
|
(#set! priority 101)))
|
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
|
|
|
(behaviour_attribute) @keyword.import
|
2022-07-09 16:55:48 +08:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(module_attribute
|
|
|
|
|
(atom) @module) @keyword.import
|
|
|
|
|
|
|
|
|
|
(wild_attribute
|
2024-03-21 20:44:35 +09:00
|
|
|
name: (attr_name
|
|
|
|
|
name: _ @attribute)) @attribute
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
; Records
|
2022-12-08 19:40:41 +01:00
|
|
|
(record_expr) @type
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(record_field_expr
|
|
|
|
|
_ @variable.member) @type
|
|
|
|
|
|
|
|
|
|
(record_field_name
|
|
|
|
|
_ @variable.member) @type
|
|
|
|
|
|
|
|
|
|
(record_name
|
|
|
|
|
"#" @type
|
|
|
|
|
name: _ @type) @type
|
|
|
|
|
|
|
|
|
|
(record_decl
|
|
|
|
|
name: _ @type) @type.definition
|
|
|
|
|
|
|
|
|
|
(record_field
|
|
|
|
|
name: _ @variable.member)
|
|
|
|
|
|
|
|
|
|
(record_field
|
|
|
|
|
name: _ @variable.member
|
|
|
|
|
ty: _ @type)
|
|
|
|
|
|
|
|
|
|
; Type alias
|
|
|
|
|
(type_alias
|
|
|
|
|
name: _ @type) @type.definition
|
|
|
|
|
|
2022-12-08 19:40:41 +01:00
|
|
|
(spec) @type.definition
|
2022-07-09 16:55:48 +08:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
[
|
|
|
|
|
(string)
|
|
|
|
|
(binary)
|
|
|
|
|
] @string
|
|
|
|
|
|
|
|
|
|
; expr_function_call
|
|
|
|
|
(call
|
2024-03-21 20:44:35 +09:00
|
|
|
expr: [
|
|
|
|
|
(atom)
|
|
|
|
|
(remote)
|
|
|
|
|
(var)
|
|
|
|
|
] @function)
|
2022-12-08 19:40:41 +01:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(call
|
|
|
|
|
(atom) @keyword.exception
|
|
|
|
|
(#any-of? @keyword.exception "error" "throw" "exit"))
|
2022-12-08 19:40:41 +01:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; Parenthesized expression: (SomeFunc)(), only highlight the parens
|
2022-12-08 19:40:41 +01:00
|
|
|
(call
|
2024-03-21 20:44:35 +09:00
|
|
|
expr: (paren_expr
|
|
|
|
|
"(" @function.call
|
|
|
|
|
")" @function.call))
|
2022-07-09 16:55:48 +08:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; function
|
2022-12-08 19:40:41 +01:00
|
|
|
(external_fun) @function.call
|
|
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(internal_fun
|
|
|
|
|
fun: (atom) @function.call)
|
|
|
|
|
|
|
|
|
|
(function_clause
|
|
|
|
|
name: (atom) @function)
|
|
|
|
|
|
|
|
|
|
(fa
|
|
|
|
|
fun: (atom) @function)
|