%YAML 1.2 --- # See http://www.sublimetext.com/docs/3/syntax.html name: __embed_test scope: conditions contexts: main: - match: '^(a)$' #matches a line consisting only in an "a" captures: 1: conditions.character.scope embed: second #allows a _ at start of the line followed by anything escape: '^(?!_)' #until a line doesn't start with a_ - match: '.*+' #everything else is disallowed scope: invalid.illegal second: #matches a line consisting of a _ followed by anything - match: '^_.*$' scope: conditions.character.scope - match: '.*+' #everything else is disallowed scope: invalid.illegal