mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-24 02:16:18 +04:00
c7aa7bf4ba
* wip * Add VSCode Dark+ Theme wip wip wip wip wip wip properly detect constants add bool wip * suggestion * add variant for c/c++ * fix hexcode error * removed regex highlight * fixed constant higlighting * wip * add space * add suggestions * update theme * update book * suggestions * fix c/c++ enum * update book
88 lines
1.4 KiB
Scheme
88 lines
1.4 KiB
Scheme
"goto" @keyword
|
|
"register" @keyword
|
|
"break" @keyword
|
|
"case" @keyword
|
|
"const" @keyword
|
|
"continue" @keyword
|
|
"default" @keyword
|
|
"do" @keyword
|
|
"else" @keyword
|
|
"enum" @keyword
|
|
"extern" @keyword
|
|
"for" @keyword
|
|
"if" @keyword
|
|
"inline" @keyword
|
|
"return" @keyword
|
|
"sizeof" @keyword
|
|
"static" @keyword
|
|
"struct" @keyword
|
|
"switch" @keyword
|
|
"typedef" @keyword
|
|
"union" @keyword
|
|
"volatile" @keyword
|
|
"while" @keyword
|
|
|
|
[
|
|
"#define"
|
|
"#elif"
|
|
"#else"
|
|
"#endif"
|
|
"#if"
|
|
"#ifdef"
|
|
"#ifndef"
|
|
"#include"
|
|
(preproc_directive)
|
|
] @keyword.directive
|
|
|
|
"--" @operator
|
|
"-" @operator
|
|
"-=" @operator
|
|
"->" @operator
|
|
"=" @operator
|
|
"!=" @operator
|
|
"*" @operator
|
|
"&" @operator
|
|
"&&" @operator
|
|
"+" @operator
|
|
"++" @operator
|
|
"+=" @operator
|
|
"<" @operator
|
|
"==" @operator
|
|
">" @operator
|
|
"||" @operator
|
|
|
|
"." @punctuation.delimiter
|
|
";" @punctuation.delimiter
|
|
|
|
(enumerator) @type.enum.variant
|
|
|
|
(string_literal) @string
|
|
(system_lib_string) @string
|
|
|
|
(null) @constant
|
|
(number_literal) @number
|
|
(char_literal) @number
|
|
|
|
(call_expression
|
|
function: (identifier) @function)
|
|
(call_expression
|
|
function: (field_expression
|
|
field: (field_identifier) @function))
|
|
(function_declarator
|
|
declarator: (identifier) @function)
|
|
(preproc_function_def
|
|
name: (identifier) @function.special)
|
|
|
|
(field_identifier) @property
|
|
(statement_identifier) @label
|
|
(type_identifier) @type
|
|
(primitive_type) @type
|
|
(sized_type_specifier) @type
|
|
|
|
((identifier) @constant
|
|
(#match? @constant "^[A-Z][A-Z\\d_]*$"))
|
|
|
|
(identifier) @variable
|
|
|
|
(comment) @comment
|