aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/wat/highlights.scm
diff options
context:
space:
mode:
authorRoberto Vidal2022-10-01 14:13:52 +0000
committerGitHub2022-10-01 14:13:52 +0000
commitcc257e9bf9a7eee7e68e04d04523a8fae10807cd (patch)
tree4a428b905706add0f7129e114a392922da8a9089 /runtime/queries/wat/highlights.scm
parent2113b1bb2fe4d69eada555d562cbcf723201998a (diff)
Add support for webassembly text format (#4040)
Diffstat (limited to 'runtime/queries/wat/highlights.scm')
-rw-r--r--runtime/queries/wat/highlights.scm17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/queries/wat/highlights.scm b/runtime/queries/wat/highlights.scm
new file mode 100644
index 00000000..007e3bbf
--- /dev/null
+++ b/runtime/queries/wat/highlights.scm
@@ -0,0 +1,17 @@
+["module" "func" "param" "result" "type" "memory" "elem" "data" "table" "global"] @keyword
+
+["import" "export"] @keyword.control.import
+
+["local"] @keyword.storage.type
+
+[(name) (string)] @string
+
+(identifier) @function
+
+[(comment_block) (comment_line)] @comment
+
+[(nat) (float) (align_offset_value)] @constant.numeric.integer
+
+(value_type) @type
+
+["(" ")"] @punctuation.bracket