feat(ts): add mustache parser with cloudinit filetype alias
This commit is contained in:
@@ -0,0 +1 @@
|
||||
; inherits: mustache
|
||||
@@ -0,0 +1 @@
|
||||
; inherits: mustache
|
||||
@@ -0,0 +1,5 @@
|
||||
; inherits: mustache
|
||||
|
||||
((text) @injection.content
|
||||
(#set! injection.language "yaml")
|
||||
(#set! injection.combined))
|
||||
@@ -0,0 +1,4 @@
|
||||
[
|
||||
(inverted_section)
|
||||
(section)
|
||||
] @fold
|
||||
@@ -0,0 +1,26 @@
|
||||
; Forked from https://github.com/TheLeoP/tree-sitter-mustache
|
||||
; Copyright (c) 2024-2025 TheLeoP
|
||||
; Licensed under the MIT license.
|
||||
; Modifications Copyright 2026 Oscar Wallberg, Apache-2.0
|
||||
|
||||
[
|
||||
(start_delimiter)
|
||||
(end_delimiter)
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
(partial_content) @module
|
||||
|
||||
"." @punctuation.delimiter
|
||||
|
||||
[
|
||||
"#"
|
||||
"/"
|
||||
"^"
|
||||
">"
|
||||
] @punctuation.special
|
||||
|
||||
(comment_statement) @comment @spell
|
||||
@@ -0,0 +1,2 @@
|
||||
((comment_statement) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Reference in New Issue
Block a user