diff --git a/syntaxes/Code Block Syntaxes.sublime-completions b/syntaxes/Code Block Syntaxes.sublime-completions
index a5439ff7..6c78dd32 100644
--- a/syntaxes/Code Block Syntaxes.sublime-completions
+++ b/syntaxes/Code Block Syntaxes.sublime-completions
@@ -664,6 +664,20 @@
"details": "Specifies SQL
code highlighting"
},
+ // WASM
+ {
+ "trigger": "wast",
+ "annotation": "WAST",
+ "kind": ["markup", "s", "Syntax"],
+ "details": "Specifies WebAssembly Text
code highlighting"
+ },
+ {
+ "trigger": "wit",
+ "annotation": "WIT",
+ "kind": ["markup", "s", "Syntax"],
+ "details": "Specifies WabAssembly Interface Type
code highlighting"
+ },
+
// XML
{
"trigger": "atom",
diff --git a/syntaxes/Markdown.sublime-syntax b/syntaxes/Markdown.sublime-syntax
index f64cb4ac..8ccd0c41 100644
--- a/syntaxes/Markdown.sublime-syntax
+++ b/syntaxes/Markdown.sublime-syntax
@@ -1182,6 +1182,8 @@ contexts:
- include: fenced-twee
- include: fenced-twig
- include: fenced-verilog
+ - include: fenced-wast
+ - include: fenced-wit
- include: fenced-xonsh
fenced-actionscript:
@@ -2858,6 +2860,50 @@ contexts:
1: punctuation.definition.raw.code-fence.end.markdown
2: meta.fold.code-fence.end.markdown
+ fenced-wast:
+ - match: |-
+ (?x)
+ {{fenced_code_block_start}}
+ (?i:\s*(wast))
+ {{fenced_code_block_trailing_infostring_characters}}
+ captures:
+ 0: meta.code-fence.definition.begin.wast.markdown-gfm
+ 2: punctuation.definition.raw.code-fence.begin.markdown
+ 5: constant.other.language-name.markdown
+ 6: comment.line.infostring.markdown
+ 7: meta.fold.code-fence.begin.markdown
+ embed: scope:source.wast
+ embed_scope:
+ markup.raw.code-fence.wast.markdown-gfm
+ source.wast
+ escape: '{{fenced_code_block_escape}}'
+ escape_captures:
+ 0: meta.code-fence.definition.end.wast.markdown-gfm
+ 1: punctuation.definition.raw.code-fence.end.markdown
+ 2: meta.fold.code-fence.end.markdown
+
+ fenced-wit:
+ - match: |-
+ (?x)
+ {{fenced_code_block_start}}
+ (?i:\s*(wit))
+ {{fenced_code_block_trailing_infostring_characters}}
+ captures:
+ 0: meta.code-fence.definition.begin.wit.markdown-gfm
+ 2: punctuation.definition.raw.code-fence.begin.markdown
+ 5: constant.other.language-name.markdown
+ 6: comment.line.infostring.markdown
+ 7: meta.fold.code-fence.begin.markdown
+ embed: scope:source.wit
+ embed_scope:
+ markup.raw.code-fence.wit.markdown-gfm
+ source.wit
+ escape: '{{fenced_code_block_escape}}'
+ escape_captures:
+ 0: meta.code-fence.definition.end.wit.markdown-gfm
+ 1: punctuation.definition.raw.code-fence.end.markdown
+ 2: meta.fold.code-fence.end.markdown
+
fenced-xonsh:
- match: |-
(?x)