helix-mods/runtime/queries/wat/highlights.scm
Jonas Everaert 79c7203a38
Added missing keywords to wat (wasm) hightlights (#4542)
added "if", "then", "else", "block", "loop", "end" and "mut" to the wat highlights.
2022-10-31 19:30:08 -05:00

20 lines
431 B
Scheme

[
"module" "func" "param" "result" "type" "memory" "elem" "data" "table" "global"
"if" "then" "else" "block" "loop" "end" "mut"
] @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