diff options
Diffstat (limited to 'runtime/queries/cooklang')
| -rw-r--r-- | runtime/queries/cooklang/highlights.scm | 31 | ||||
| -rw-r--r-- | runtime/queries/cooklang/injections.scm | 2 |
2 files changed, 33 insertions, 0 deletions
diff --git a/runtime/queries/cooklang/highlights.scm b/runtime/queries/cooklang/highlights.scm new file mode 100644 index 000000000..4ac391899 --- /dev/null +++ b/runtime/queries/cooklang/highlights.scm @@ -0,0 +1,31 @@ +(metadata) @comment + +(comment) @comment @spell + +[ + "{" + "}" +] @punctuation.bracket + +"%" @punctuation.special + +(ingredient + "@" @punctuation.delimiter + (name)? @string.special.symbol + (amount + (quantity)? @number + (units)? @constant)?) + +(timer + "~" @punctuation.delimiter + (name)? @string.special.symbol + (amount + (quantity)? @number + (units)? @constant)?) + +(cookware + "#" @punctuation.delimiter + (name)? @string.special.symbol + (amount + (quantity)? @number + (units)? @constant)?) diff --git a/runtime/queries/cooklang/injections.scm b/runtime/queries/cooklang/injections.scm new file mode 100644 index 000000000..2f0e58eb6 --- /dev/null +++ b/runtime/queries/cooklang/injections.scm @@ -0,0 +1,2 @@ +((comment) @injection.content + (#set! injection.language "comment")) |
