aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/cooklang
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/cooklang')
-rw-r--r--runtime/queries/cooklang/highlights.scm31
-rw-r--r--runtime/queries/cooklang/injections.scm2
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"))