Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %YAML 1.2
- ---
- # See http://www.sublimetext.com/docs/3/syntax.html
- name: __embed_test
- first_line_match: "^#test$"
- scope: conditions
- contexts:
- main:
- - match: '^()(a)$' #matches a line consisting only in an "a"
- captures:
- 1: conditions.character
- 2: conditions.character.scope
- embed: conditions #allows an "a" preceded by at most 1 more tab than the previous line
- escape: '^(?!\1\t)a$' #this should escape if more 1 more tab than the previous line is used
- - match: '.*+' #everything else is disallowed
- scope: invalid.illegal
- conditions: #matches a line consisting of at most as many +1 tabs as the previous line
- - match: '(\t*+)(a)$'
- captures:
- 1: conditions.character
- 2: conditions.character.scope
- embed: conditions #allows an "a" preceded by at most 1 more tab than the previous line
- escape: '^(?!\1\t)a$' #this should escape if more 1 more tab than the previous line is used
- - match: '.*+' #everything else is disallowed
- scope: invalid.illegal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement