feat(ts): add mustache parser with cloudinit filetype alias

This commit is contained in:
2026-05-12 06:51:52 +02:00
parent ef21d5a7ff
commit 8a88455f87
11 changed files with 131 additions and 10 deletions
+4
View File
@@ -0,0 +1,4 @@
[
(inverted_section)
(section)
] @fold
+26
View File
@@ -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
+2
View File
@@ -0,0 +1,2 @@
((comment_statement) @injection.content
(#set! injection.language "comment"))