Skip to content

Commit ab69ecd

Browse files
committed
Add support for pop instruction.
It's not strictly limited to exception handling but is currently only necessary in catch blocks.
1 parent 6c8d335 commit ab69ecd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

wast.sublime-syntax

+15
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,21 @@ contexts:
396396
- instructions
397397
- resulttype
398398
- label
399+
- match: '(\(){{WHITES}}*(pop){{IDTERM}}'
400+
captures:
401+
1: punctuation.definition.instruction.begin.wast
402+
2: support.function.numeric.wast
403+
push:
404+
- - meta_scope: meta.s-expression.instruction.wast
405+
- match: '\)'
406+
scope: punctuation.definition.instruction.end.wast
407+
pop: true
408+
- match: '.'
409+
scope: invalid.illegal.wast
410+
- - match: '{{VALTYP}}'
411+
scope: support.type.wast
412+
- match: '(?=.)'
413+
pop: true
399414
# The lookahead here is a hack for if-then to avoid more copypasta contexts
400415
- match: '\((?!{{WHITES}}*then{{IDTERM}})'
401416
scope: punctuation.definition.instruction.begin.wast

0 commit comments

Comments
 (0)