forked from helix-editor/helix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ADL language support (helix-editor#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 fixes
- Loading branch information
1 parent
82e0aaa
commit 1c665d6
Showing
5 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
(struct) | ||
(union) | ||
|
||
(array) | ||
(object) | ||
] @indent | ||
|
||
; [ | ||
; "}" | ||
; "]" | ||
; ] @outdent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(struct (_) @function.inside) @funtion.around |