$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 define_substitution: name: keyword.local.define_substitution # Pattern syntax: # quest begin end quest_clause: name: keyword.control.quest_clause # Pattern syntax: # state begin end state_clause: name: keyword.control.state_clause # Pattern syntax: # when with begin end when_clause: name: keyword.control.when_clause