31 lines
811 B
YAML
31 lines
811 B
YAML
|
$schema: https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json
|
||
|
scopeName: source.quest
|
||
|
|
||
|
patterns:
|
||
|
- {include: "#quest_clause"}
|
||
|
|
||
|
repository:
|
||
|
quest:
|
||
|
patterns:
|
||
|
- {include: "#define_substitution"}
|
||
|
- {include: "#quest_clause"}
|
||
|
|
||
|
# Pattern syntax:
|
||
|
# define <name> <value(string, decimal, float, any)>
|
||
|
define_substitution:
|
||
|
name: keyword.local.define_substitution
|
||
|
|
||
|
# Pattern syntax:
|
||
|
# quest <name> begin <define* | state_clause+> end
|
||
|
quest_clause:
|
||
|
name: keyword.control.quest_clause
|
||
|
|
||
|
# Pattern syntax:
|
||
|
# state <name> begin <with_clause+> end
|
||
|
state_clause:
|
||
|
name: keyword.control.state_clause
|
||
|
|
||
|
# Pattern syntax:
|
||
|
# when <name | name.cond> with <lua_expression> begin <lua_expression> end
|
||
|
when_clause:
|
||
|
name: keyword.control.when_clause
|