Update generated neovim config
This commit is contained in:
@ -0,0 +1,58 @@
|
||||
; HEEx delimiters
|
||||
[
|
||||
"%>"
|
||||
"--%>"
|
||||
"-->"
|
||||
"/>"
|
||||
"<!"
|
||||
"<!--"
|
||||
"<"
|
||||
"<%!--"
|
||||
"<%"
|
||||
"<%#"
|
||||
"<%%="
|
||||
"<%="
|
||||
"</"
|
||||
"</:"
|
||||
"<:"
|
||||
">"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
; HEEx operators are highlighted as such
|
||||
"=" @operator
|
||||
|
||||
; HEEx inherits the DOCTYPE tag from HTML
|
||||
(doctype) @constant
|
||||
|
||||
; HEEx comments are highlighted as such
|
||||
(comment) @comment
|
||||
|
||||
; 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) @attribute
|
||||
|
||||
; HEEx special attributes are highlighted as keywords
|
||||
(special_attribute_name) @keyword
|
||||
|
||||
[
|
||||
(attribute_value)
|
||||
(quoted_attribute_value)
|
||||
] @string
|
||||
|
||||
; HEEx components are highlighted as Elixir modules and functions
|
||||
(component_name
|
||||
[
|
||||
(module) @module
|
||||
(function) @function
|
||||
"." @punctuation.delimiter
|
||||
])
|
||||
@ -0,0 +1,24 @@
|
||||
; directives are standalone tags like '<%= @x %>'
|
||||
;
|
||||
; partial_expression_values are elixir code that is part of an expression that
|
||||
; spans multiple directive nodes, so they must be combined. For example:
|
||||
; <%= if true do %>
|
||||
; <p>hello, tree-sitter!</p>
|
||||
; <% end %>
|
||||
((directive
|
||||
[
|
||||
(partial_expression_value)
|
||||
(ending_expression_value)
|
||||
] @injection.content)
|
||||
(#set! injection.language "elixir")
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.combined))
|
||||
|
||||
; Regular expression_values do not need to be combined
|
||||
((directive (expression_value) @injection.content)
|
||||
(#set! injection.language "elixir"))
|
||||
|
||||
; expressions live within HTML tags, and do not need to be combined
|
||||
; <link href={ Routes.static_path(..) } />
|
||||
((expression (expression_value) @injection.content)
|
||||
(#set! injection.language "elixir"))
|
||||
Reference in New Issue
Block a user