mirror of https://github.com/helix-editor/helix
feat: Add ADL language support (#10029)
* feat: Add ADL language support * removed error match & change captures to match https://docs.helix-editor.com/master/themes.html\#syntax-highlighting * fixes to grammar, highlight changes based on PR and grammar fixespull/10290/head
parent
e663dafcd8
commit
0da809c981
@ -0,0 +1,37 @@
|
|||||||
|
; adl
|
||||||
|
|
||||||
|
[
|
||||||
|
"module"
|
||||||
|
"struct"
|
||||||
|
"union"
|
||||||
|
"type"
|
||||||
|
"newtype"
|
||||||
|
"annotation"
|
||||||
|
] @keyword
|
||||||
|
|
||||||
|
(adl (scoped_name)) @namespace
|
||||||
|
(comment) @comment
|
||||||
|
(doc_comment) @comment.block.documentation
|
||||||
|
(name) @type
|
||||||
|
|
||||||
|
(fname) @variable.other.member
|
||||||
|
|
||||||
|
(type_expr (scoped_name) @type)
|
||||||
|
|
||||||
|
(type_expr_params (param (scoped_name) @type.parameter))
|
||||||
|
|
||||||
|
; json
|
||||||
|
(key) @string.special
|
||||||
|
|
||||||
|
(string) @string
|
||||||
|
|
||||||
|
(number) @constant.numeric
|
||||||
|
|
||||||
|
[
|
||||||
|
(null)
|
||||||
|
(true)
|
||||||
|
(false)
|
||||||
|
] @constant.builtin
|
||||||
|
|
||||||
|
(escape_sequence) @constant.character.escape
|
||||||
|
|
@ -0,0 +1,12 @@
|
|||||||
|
[
|
||||||
|
(struct)
|
||||||
|
(union)
|
||||||
|
|
||||||
|
(array)
|
||||||
|
(object)
|
||||||
|
] @indent
|
||||||
|
|
||||||
|
; [
|
||||||
|
; "}"
|
||||||
|
; "]"
|
||||||
|
; ] @outdent
|
@ -0,0 +1 @@
|
|||||||
|
(struct (_) @function.inside) @funtion.around
|
Loading…
Reference in New Issue