hsim/doc/zelus.sublime-syntax
2025-05-21 14:58:14 +02:00

36 lines
667 B
YAML

%YAML 1.2
---
name: Zelus
file_extensions: [zls, zli]
scope: source
contexts:
main:
- match: \b(let|in|where|rec|and|local)\b
scope: keyword.control
- match: \b(if|then|else)\b
scope: keyword.control.conditional
- match: \b(hybrid|node)\b
scope: keyword.control
- match: \b(up|assert|der|init|reset|last)\b
scope: entity.name.constant
- match: '"'
push: string
- match: \(\*
push: comment
string:
- meta_scope: string.quoted.double
- match: \\.
scope: constant.character.escape
- match: '"'
pop: true
comment:
- meta_scope: comment
- match: \*\)
pop: true