-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Changelog | ||
|
||
## Unreleased | ||
- Add `HEEx` support | ||
|
||
## 0.12.67 - 2023-10-11 | ||
- Add `Astro` support | ||
|
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,56 @@ | ||
; HEEx delimiters | ||
[ | ||
"%>" | ||
"--%>" | ||
"-->" | ||
"/>" | ||
"<!" | ||
"<!--" | ||
"<" | ||
"<%!--" | ||
"<%" | ||
"<%#" | ||
"<%%=" | ||
"<%=" | ||
"</" | ||
"</:" | ||
"<:" | ||
">" | ||
"{" | ||
"}" | ||
] @tag.delimiter | ||
|
||
; HEEx operators are highlighted as such | ||
"=" @operator | ||
|
||
; HEEx inherits the DOCTYPE tag from HTML | ||
(doctype) @constant | ||
|
||
; HEEx comments are highlighted as such | ||
(comment) @comment @spell | ||
|
||
; HEEx text content is treated as markup | ||
(text) @text | ||
|
||
; Tree-sitter parser errors | ||
(ERROR) @error | ||
|
||
; HEEx tags and slots are highlighted as HTML | ||
[ | ||
(tag_name) | ||
(slot_name) | ||
] @tag | ||
|
||
; HEEx attributes are highlighted as HTML attributes | ||
(attribute_name) @tag.attribute | ||
[ | ||
(attribute_value) | ||
(quoted_attribute_value) | ||
] @string | ||
|
||
; HEEx components are highlighted as modules and function calls | ||
(component_name [ | ||
(module) @type | ||
(function) @function | ||
"." @punctuation.delimiter | ||
]) |
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