mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
Scheme
52 lines
1.2 KiB
Scheme
[ "abstract" "all" "at"
|
|
"case"
|
|
"end" "extends" "external" "external_as_list"
|
|
"for"
|
|
"is"
|
|
"limited"
|
|
"null"
|
|
"others"
|
|
"package"
|
|
;; "project"
|
|
"renames"
|
|
"type"
|
|
"use"
|
|
"when"
|
|
"with"
|
|
] @keyword
|
|
|
|
;; Avoid highlighting Project in Project'Project_Dir
|
|
(project_declaration "project" @keyword)
|
|
|
|
;; highlight qualifiers as keywords (not all qualifiers are actual keywords)
|
|
(project_qualifier _ @keyword)
|
|
|
|
[":=" "&" "|" "=>"] @operator
|
|
|
|
(comment) @comment
|
|
(string_literal) @string
|
|
(numeric_literal) @constant.numeric
|
|
|
|
;; Type
|
|
(typed_string_declaration name: (identifier) @type)
|
|
(variable_declaration type: (name (identifier) @type .))
|
|
|
|
;; Variable
|
|
(variable_declaration name: (identifier) @variable)
|
|
(variable_reference (name (identifier) @variable .) .)
|
|
|
|
;; Function
|
|
(builtin_function_call name: _ @function.builtin)
|
|
|
|
;; Attribute
|
|
(attribute_declaration name: (identifier) @attribute)
|
|
(attribute_reference (identifier) @attribute)
|
|
|
|
;; Package
|
|
(variable_reference (name (identifier) @function .) "'")
|
|
(package_declaration
|
|
[ name: (identifier) @function
|
|
endname: (identifier) @function
|
|
origname: (name (identifier) @function .)
|
|
basename: (name (identifier) @function .)])
|