A Sublime Text 3 package that adds a simple syntax highlighting, perfect for config files. mirror of https://github.com/budlabs/SimpleSyntax
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB

  1. %YAML 1.2
  2. ---
  3. name: ssDquote
  4. fileTypes: []
  5. scope: source.ssDquote
  6. contexts:
  7. # The prototype context is prepended to all contexts but those setting
  8. # meta_include_prototype: false.
  9. prototype:
  10. - include: comments
  11. main:
  12. - include: numbers
  13. # - include: strings
  14. # - include: budsym
  15. numbers:
  16. - match: '\b(-)?[0-9.]+\b'
  17. scope: constant.numeric.ssDquote
  18. comments:
  19. # Comments begin with a '"' and finish at the end of the line.
  20. - match: '"'
  21. scope: punctuation.definition.comment.ssDquote
  22. push:
  23. - include: budsym
  24. - meta_scope: comment.line.double-slash.ssDquote
  25. - match: $\n?
  26. pop: true
  27. budsym-terminator:
  28. - match: '[ ]*(;*)[ ]*($\n?)'
  29. captures:
  30. 1: punctuation.definition.heading.end.markdown
  31. 2: meta.whitespace.newline.markdown
  32. pop: true
  33. budsym:
  34. - meta_include_prototype: false
  35. - match: ' >>'
  36. # - match: '(>{1,6})(?!>)\s*(?=\S)'
  37. captures:
  38. 1: punctuation.definition.heading.begin.markdown
  39. push:
  40. - meta_scope: markup.heading.markdown
  41. - meta_content_scope: entity.name.section.markdown
  42. - include: budsym-terminator