Advertisement
Guest User

Untitled

a guest
Nov 1st, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. %YAML 1.2
  2. ---
  3. # See http://www.sublimetext.com/docs/3/syntax.html
  4. name: __embed_test
  5. first_line_match: "^#test$"
  6. scope: conditions
  7. contexts:
  8. main:
  9. - match: '^()(a)$' #matches a line consisting only in an "a"
  10. captures:
  11. 1: conditions.character
  12. 2: conditions.character.scope
  13. embed: conditions #allows an "a" preceded by at most 1 more tab than the previous line
  14. escape: '^(?!\1\t)a$' #this should escape if more 1 more tab than the previous line is used
  15. - match: '.*+' #everything else is disallowed
  16. scope: invalid.illegal
  17. conditions: #matches a line consisting of at most as many +1 tabs as the previous line
  18. - match: '(\t*+)(a)$'
  19. captures:
  20. 1: conditions.character
  21. 2: conditions.character.scope
  22. embed: conditions #allows an "a" preceded by at most 1 more tab than the previous line
  23. escape: '^(?!\1\t)a$' #this should escape if more 1 more tab than the previous line is used
  24. - match: '.*+' #everything else is disallowed
  25. scope: invalid.illegal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement