Advertisement
Guest User

Sublime XSL

a guest
Jun 12th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.45 KB | None | 0 0
  1. %YAML 1.2
  2. ---
  3. name: XSL
  4. file_extensions:
  5.   - xsl
  6.   - xslt
  7. first_line_match: '^<\?xml '
  8. scope: text.xml.xsl
  9. contexts:
  10.  main:
  11.    - match: '(<)(xsl)((:))(template)'
  12.      captures:
  13.        1: punctuation.definition.tag.xml
  14.        2: entity.name.tag.namespace.xml
  15.        3: entity.name.tag.xml
  16.        4: punctuation.separator.namespace.xml
  17.        5: entity.name.tag.localname.xml
  18.      push:
  19.        - meta_scope: meta.tag.xml.template
  20.        - match: (>)
  21.           pop: true
  22.         - match: " (?:([-_a-zA-Z0-9]+)((:)))?([a-zA-Z-]+)"
  23.           captures:
  24.             1: entity.other.attribute-name.namespace.xml
  25.             2: entity.other.attribute-name.xml
  26.             3: punctuation.separator.namespace.xml
  27.             4: entity.other.attribute-name.localname.xml
  28.         - include: doublequotedString
  29.         - include: singlequotedString
  30.     - include: scope:text.xml
  31.   doublequotedString:
  32.     - match: '"'
  33.       captures:
  34.         0: punctuation.definition.string.begin.xml
  35.       push:
  36.         - meta_scope: string.quoted.double.xml
  37.         - match: '"'
  38.           captures:
  39.             0: punctuation.definition.string.end.xml
  40.           pop: true
  41.   singlequotedString:
  42.     - match: "'"
  43.       captures:
  44.         0: punctuation.definition.string.begin.xml
  45.       push:
  46.         - meta_scope: string.quoted.single.xml
  47.         - match: "'"
  48.           captures:
  49.             0: punctuation.definition.string.end.xml
  50.           pop: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement