Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
206 lines
3.6 KiB
Scheme
206 lines
3.6 KiB
Scheme
[
|
|
(line_comment)
|
|
(block_comment)
|
|
] @comment @spell
|
|
|
|
((block_comment) @comment.documentation
|
|
(#lua-match? @comment.documentation "^{[-]|[^|]"))
|
|
|
|
|
|
; Keywords
|
|
;---------
|
|
|
|
[
|
|
"if"
|
|
"then"
|
|
"else"
|
|
(case)
|
|
(of)
|
|
] @conditional
|
|
|
|
[
|
|
"let"
|
|
"in"
|
|
(as)
|
|
(port)
|
|
(alias)
|
|
(infix)
|
|
(module)
|
|
(type)
|
|
] @keyword
|
|
|
|
[
|
|
(import)
|
|
(exposing)
|
|
] @include
|
|
|
|
|
|
; Punctuation
|
|
;------------
|
|
|
|
[
|
|
(double_dot)
|
|
] @punctuation.special
|
|
|
|
[
|
|
","
|
|
"|"
|
|
(dot)
|
|
] @punctuation.delimiter
|
|
|
|
[
|
|
"("
|
|
")"
|
|
"{"
|
|
"}"
|
|
"["
|
|
"]"
|
|
] @punctuation.bracket
|
|
|
|
|
|
; Variables
|
|
;----------
|
|
|
|
(value_qid
|
|
(lower_case_identifier) @variable)
|
|
(value_declaration
|
|
(function_declaration_left (lower_case_identifier) @variable))
|
|
(type_annotation
|
|
(lower_case_identifier) @variable)
|
|
(port_annotation
|
|
(lower_case_identifier) @variable)
|
|
(anything_pattern
|
|
(underscore) @variable)
|
|
(record_base_identifier
|
|
(lower_case_identifier) @variable)
|
|
(lower_pattern
|
|
(lower_case_identifier) @variable)
|
|
(exposed_value
|
|
(lower_case_identifier) @variable)
|
|
|
|
(value_qid
|
|
((dot) (lower_case_identifier) @field))
|
|
(field_access_expr
|
|
((dot) (lower_case_identifier) @field))
|
|
|
|
(function_declaration_left
|
|
(anything_pattern (underscore) @parameter))
|
|
(function_declaration_left
|
|
(lower_pattern (lower_case_identifier) @parameter))
|
|
|
|
|
|
; Functions
|
|
;----------
|
|
|
|
(value_declaration
|
|
functionDeclarationLeft:
|
|
(function_declaration_left
|
|
(lower_case_identifier) @function
|
|
(pattern)))
|
|
(value_declaration
|
|
functionDeclarationLeft:
|
|
(function_declaration_left
|
|
(lower_case_identifier) @function
|
|
pattern: (_)))
|
|
(value_declaration
|
|
functionDeclarationLeft:
|
|
(function_declaration_left
|
|
(lower_case_identifier) @function)
|
|
body: (anonymous_function_expr))
|
|
(type_annotation
|
|
name: (lower_case_identifier) @function
|
|
typeExpression: (type_expression (arrow)))
|
|
(port_annotation
|
|
name: (lower_case_identifier) @function
|
|
typeExpression: (type_expression (arrow)))
|
|
|
|
(function_call_expr
|
|
target: (value_expr
|
|
(value_qid (lower_case_identifier) @function.call)))
|
|
|
|
|
|
; Operators
|
|
;----------
|
|
|
|
[
|
|
(operator_identifier)
|
|
(eq)
|
|
(colon)
|
|
(arrow)
|
|
(backslash)
|
|
"::"
|
|
] @operator
|
|
|
|
|
|
; Modules
|
|
;--------
|
|
|
|
(module_declaration
|
|
(upper_case_qid (upper_case_identifier) @namespace))
|
|
(import_clause
|
|
(upper_case_qid (upper_case_identifier) @namespace))
|
|
(as_clause
|
|
(upper_case_identifier) @namespace)
|
|
(value_expr
|
|
(value_qid (upper_case_identifier) @namespace))
|
|
|
|
|
|
; Types
|
|
;------
|
|
|
|
(type_declaration
|
|
(upper_case_identifier) @type)
|
|
(type_ref
|
|
(upper_case_qid (upper_case_identifier) @type))
|
|
(type_variable
|
|
(lower_case_identifier) @type)
|
|
(lower_type_name
|
|
(lower_case_identifier) @type)
|
|
(exposed_type
|
|
(upper_case_identifier) @type)
|
|
|
|
(type_alias_declaration
|
|
(upper_case_identifier) @type.definition)
|
|
|
|
(field_type
|
|
name: (lower_case_identifier) @property)
|
|
(field
|
|
name: (lower_case_identifier) @property)
|
|
|
|
(type_declaration
|
|
(union_variant (upper_case_identifier) @constructor))
|
|
(nullary_constructor_argument_pattern
|
|
(upper_case_qid (upper_case_identifier) @constructor))
|
|
(union_pattern
|
|
(upper_case_qid (upper_case_identifier) @constructor))
|
|
(value_expr
|
|
(upper_case_qid (upper_case_identifier)) @constructor)
|
|
|
|
|
|
; Literals
|
|
;---------
|
|
|
|
(number_constant_expr
|
|
(number_literal) @number)
|
|
|
|
(upper_case_qid
|
|
((upper_case_identifier) @boolean (#any-of? @boolean "True" "False")))
|
|
|
|
[
|
|
(open_quote)
|
|
(close_quote)
|
|
] @string
|
|
(string_constant_expr
|
|
(string_escape) @string)
|
|
(string_constant_expr
|
|
(regular_string_part) @string)
|
|
|
|
[
|
|
(open_char)
|
|
(close_char)
|
|
] @character
|
|
(char_constant_expr
|
|
(string_escape) @character)
|
|
(char_constant_expr
|
|
(regular_string_part) @character)
|