mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
75 lines
981 B
Scheme
75 lines
981 B
Scheme
[
|
|
(comment)
|
|
(preprocessor_comment)
|
|
] @comment @spell
|
|
|
|
"#include" @keyword.import
|
|
|
|
[
|
|
"#define"
|
|
"#undef"
|
|
] @keyword.directive.define
|
|
|
|
[
|
|
"#if"
|
|
"#ifdef"
|
|
"#ifndef"
|
|
"#elif"
|
|
"#elifdef"
|
|
"#elifndef"
|
|
"#else"
|
|
"#endif"
|
|
(directive)
|
|
] @keyword.directive
|
|
|
|
(identifier) @variable
|
|
|
|
(define_directive
|
|
name: (identifier) @constant.macro)
|
|
|
|
(define_function_directive
|
|
name: (identifier) @function.macro)
|
|
|
|
(parameters
|
|
(identifier) @variable.parameter)
|
|
|
|
"..." @variable.parameter.builtin
|
|
|
|
(undef_directive
|
|
name: (identifier) @constant.macro)
|
|
|
|
(ifdef_directive
|
|
condition: (identifier) @constant.macro)
|
|
|
|
(elifdef_directive
|
|
condition: (identifier) @constant.macro)
|
|
|
|
(expansion) @markup.raw
|
|
|
|
(component) @variable.member
|
|
|
|
(components
|
|
(component) @property .)
|
|
|
|
[
|
|
(string)
|
|
(resource_value)
|
|
] @string
|
|
|
|
(escape_sequence) @string.escape
|
|
|
|
[
|
|
"*"
|
|
(any_component)
|
|
] @character.special
|
|
|
|
[
|
|
"."
|
|
","
|
|
":"
|
|
] @punctuation.delimiter
|
|
|
|
[
|
|
"("
|
|
")"
|
|
] @punctuation.bracket
|