mirror of https://github.com/helix-editor/helix
Improve language support for Ada (#12131)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>pull/11158/merge
parent
80709cee61
commit
95e6c11ebc
@ -0,0 +1,51 @@
|
|||||||
|
[ "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 .)])
|
Loading…
Reference in New Issue