feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent 310f0925ec
commit 692b051b09
1247 changed files with 6096 additions and 9074 deletions

View file

@ -0,0 +1,10 @@
[
(elif_directive)
(elifdef_directive)
(else_directive)
(if_directive)
(ifdef_directive)
(preprocessor_comment)
(comment)+
(include_directive)+
] @fold

View 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

View file

@ -0,0 +1,5 @@
([
(comment)
(preprocessor_comment)
] @injection.content
(#set! injection.language "comment"))

View 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