mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
10
runtime/queries/xresources/folds.scm
Normal file
10
runtime/queries/xresources/folds.scm
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[
|
||||
(elif_directive)
|
||||
(elifdef_directive)
|
||||
(else_directive)
|
||||
(if_directive)
|
||||
(ifdef_directive)
|
||||
(preprocessor_comment)
|
||||
(comment)+
|
||||
(include_directive)+
|
||||
] @fold
|
||||
75
runtime/queries/xresources/highlights.scm
Normal file
75
runtime/queries/xresources/highlights.scm
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
[
|
||||
(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
|
||||
5
runtime/queries/xresources/injections.scm
Normal file
5
runtime/queries/xresources/injections.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
([
|
||||
(comment)
|
||||
(preprocessor_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
12
runtime/queries/xresources/locals.scm
Normal file
12
runtime/queries/xresources/locals.scm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(define_directive
|
||||
name: (identifier) @local.definition.macro)
|
||||
|
||||
(define_function_directive
|
||||
name: (identifier) @local.definition.macro)
|
||||
|
||||
(parameters
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
(resources) @local.scope
|
||||
Loading…
Add table
Add a link
Reference in a new issue