Created
August 13, 2015 09:57
-
-
Save paoloantinori/e365d7183a34d4537542 to your computer and use it in GitHub Desktop.
Tweaked XML.tmLanguage for Sublime Text 3 to highlight correctly ELEMENTS that use DOT symbol. Files lives inside `Packages/XML.sublime-package`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>fileTypes</key> | |
| <array> | |
| <string>xml</string> | |
| <string>tld</string> | |
| <string>jsp</string> | |
| <string>pt</string> | |
| <string>cpt</string> | |
| <string>dtml</string> | |
| <string>rss</string> | |
| <string>opml</string> | |
| </array> | |
| <key>foldingStartMarker</key> | |
| <string>^\s*(<[^!?%/](?!.+?(/>|</.+?>))|<[!%]--(?!.+?--%?>)|<%[!]?(?!.+?%>))</string> | |
| <key>foldingStopMarker</key> | |
| <string>^\s*(</[^>]+>|[/%]>|-->)\s*$</string> | |
| <key>keyEquivalent</key> | |
| <string>^~X</string> | |
| <key>name</key> | |
| <string>XML</string> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>begin</key> | |
| <string>(<\?)\s*([-_a-zA-Z0-9]+)</string> | |
| <key>captures</key> | |
| <dict> | |
| <key>1</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.tag.begin.xml</string> | |
| </dict> | |
| <key>2</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.name.tag.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>(\?>)</string> | |
| <key>name</key> | |
| <string>meta.tag.preprocessor.xml</string> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>match</key> | |
| <string> ([a-zA-Z-]+)</string> | |
| <key>name</key> | |
| <string>entity.other.attribute-name.xml</string> | |
| </dict> | |
| <dict> | |
| <key>include</key> | |
| <string>#doublequotedString</string> | |
| </dict> | |
| <dict> | |
| <key>include</key> | |
| <string>#singlequotedString</string> | |
| </dict> | |
| </array> | |
| </dict> | |
| <dict> | |
| <key>begin</key> | |
| <string>(<!)(DOCTYPE)\s+([:a-zA-Z_][:a-zA-Z0-9_.-]*)</string> | |
| <key>captures</key> | |
| <dict> | |
| <key>1</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.tag.begin.xml</string> | |
| </dict> | |
| <key>2</key> | |
| <dict> | |
| <key>name</key> | |
| <string>keyword.doctype.xml</string> | |
| </dict> | |
| <key>3</key> | |
| <dict> | |
| <key>name</key> | |
| <string>variable.documentroot.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>\s*(>)</string> | |
| <key>name</key> | |
| <string>meta.tag.sgml.doctype.xml</string> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>include</key> | |
| <string>#internalSubset</string> | |
| </dict> | |
| </array> | |
| </dict> | |
| <dict> | |
| <key>begin</key> | |
| <string><[!%]--</string> | |
| <key>captures</key> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.comment.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>--%?></string> | |
| <key>name</key> | |
| <string>comment.block.xml</string> | |
| </dict> | |
| <dict> | |
| <key>begin</key> | |
| <string>(<)((?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9:]+))(?=(\s[^>]*)?></\2>)</string> | |
| <key>beginCaptures</key> | |
| <dict> | |
| <key>1</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.tag.begin.xml</string> | |
| </dict> | |
| <key>3</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.name.tag.namespace.xml</string> | |
| </dict> | |
| <key>4</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.name.tag.xml</string> | |
| </dict> | |
| <key>5</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.separator.namespace.xml</string> | |
| </dict> | |
| <key>6</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.name.tag.localname.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>(>)(<)(/)(?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9:]+)(>)</string> | |
| <key>endCaptures</key> | |
| <dict> | |
| <key>1</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.tag.end.xml</string> | |
| </dict> | |
| <key>2</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.tag.begin.xml meta.scope.between-tag-pair.xml</string> | |
| </dict> | |
| <key>3</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.tag.begin.xml</string> | |
| </dict> | |
| <key>4</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.name.tag.namespace.xml</string> | |
| </dict> | |
| <key>5</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.name.tag.xml</string> | |
| </dict> | |
| <key>6</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.separator.namespace.xml</string> | |
| </dict> | |
| <key>7</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.name.tag.localname.xml</string> | |
| </dict> | |
| <key>8</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.tag.end.xml</string> | |
| </dict> | |
| </dict> | |
| <key>name</key> | |
| <string>meta.tag.no-content.xml</string> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>include</key> | |
| <string>#tagStuff</string> | |
| </dict> | |
| </array> | |
| </dict> | |
| <dict> | |
| <key>begin</key> | |
| <string>(</?)(?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9.:]+)</string> | |
| <key>captures</key> | |
| <dict> | |
| <key>1</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.tag.begin.xml</string> | |
| </dict> | |
| <key>2</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.name.tag.namespace.xml</string> | |
| </dict> | |
| <key>3</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.name.tag.xml</string> | |
| </dict> | |
| <key>4</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.separator.namespace.xml</string> | |
| </dict> | |
| <key>5</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.name.tag.localname.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>(/?>)</string> | |
| <key>endCaptures</key> | |
| <dict> | |
| <key>1</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.tag.end.xml</string> | |
| </dict> | |
| </dict> | |
| <key>name</key> | |
| <string>meta.tag.xml</string> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>include</key> | |
| <string>#tagStuff</string> | |
| </dict> | |
| </array> | |
| </dict> | |
| <dict> | |
| <key>include</key> | |
| <string>#entity</string> | |
| </dict> | |
| <dict> | |
| <key>include</key> | |
| <string>#bare-ampersand</string> | |
| </dict> | |
| <dict> | |
| <key>begin</key> | |
| <string><%@</string> | |
| <key>beginCaptures</key> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.section.embedded.begin.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>%></string> | |
| <key>endCaptures</key> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.section.embedded.end.xml</string> | |
| </dict> | |
| </dict> | |
| <key>name</key> | |
| <string>source.java-props.embedded.xml</string> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>match</key> | |
| <string>page|include|taglib</string> | |
| <key>name</key> | |
| <string>keyword.other.page-props.xml</string> | |
| </dict> | |
| </array> | |
| </dict> | |
| <dict> | |
| <key>begin</key> | |
| <string><%[!=]?(?!--)</string> | |
| <key>beginCaptures</key> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.section.embedded.begin.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>(?!--)%></string> | |
| <key>endCaptures</key> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.section.embedded.end.xml</string> | |
| </dict> | |
| </dict> | |
| <key>name</key> | |
| <string>source.java.embedded.xml</string> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>include</key> | |
| <string>source.java</string> | |
| </dict> | |
| </array> | |
| </dict> | |
| <dict> | |
| <key>begin</key> | |
| <string><!\[CDATA\[</string> | |
| <key>beginCaptures</key> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.string.begin.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>]]></string> | |
| <key>endCaptures</key> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.string.end.xml</string> | |
| </dict> | |
| </dict> | |
| <key>name</key> | |
| <string>string.unquoted.cdata.xml</string> | |
| </dict> | |
| </array> | |
| <key>repository</key> | |
| <dict> | |
| <key>EntityDecl</key> | |
| <dict> | |
| <key>begin</key> | |
| <string>(<!)(ENTITY)\s+(%\s+)?([:a-zA-Z_][:a-zA-Z0-9_.-]*)(\s+(?:SYSTEM|PUBLIC)\s+)?</string> | |
| <key>captures</key> | |
| <dict> | |
| <key>1</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.tag.begin.xml</string> | |
| </dict> | |
| <key>2</key> | |
| <dict> | |
| <key>name</key> | |
| <string>keyword.entity.xml</string> | |
| </dict> | |
| <key>3</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.entity.xml</string> | |
| </dict> | |
| <key>4</key> | |
| <dict> | |
| <key>name</key> | |
| <string>variable.entity.xml</string> | |
| </dict> | |
| <key>5</key> | |
| <dict> | |
| <key>name</key> | |
| <string>keyword.entitytype.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>(>)</string> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>include</key> | |
| <string>#doublequotedString</string> | |
| </dict> | |
| <dict> | |
| <key>include</key> | |
| <string>#singlequotedString</string> | |
| </dict> | |
| </array> | |
| </dict> | |
| <key>bare-ampersand</key> | |
| <dict> | |
| <key>match</key> | |
| <string>&</string> | |
| <key>name</key> | |
| <string>invalid.illegal.bad-ampersand.xml</string> | |
| </dict> | |
| <key>doublequotedString</key> | |
| <dict> | |
| <key>begin</key> | |
| <string>"</string> | |
| <key>beginCaptures</key> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.string.begin.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>"</string> | |
| <key>endCaptures</key> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.string.end.xml</string> | |
| </dict> | |
| </dict> | |
| <key>name</key> | |
| <string>string.quoted.double.xml</string> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>include</key> | |
| <string>#entity</string> | |
| </dict> | |
| <dict> | |
| <key>include</key> | |
| <string>#bare-ampersand</string> | |
| </dict> | |
| </array> | |
| </dict> | |
| <key>entity</key> | |
| <dict> | |
| <key>captures</key> | |
| <dict> | |
| <key>1</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.constant.xml</string> | |
| </dict> | |
| <key>3</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.constant.xml</string> | |
| </dict> | |
| </dict> | |
| <key>match</key> | |
| <string>(&)([:a-zA-Z_][:a-zA-Z0-9_.-]*|#[0-9]+|#x[0-9a-fA-F]+)(;)</string> | |
| <key>name</key> | |
| <string>constant.character.entity.xml</string> | |
| </dict> | |
| <key>internalSubset</key> | |
| <dict> | |
| <key>begin</key> | |
| <string>(\[)</string> | |
| <key>captures</key> | |
| <dict> | |
| <key>1</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.constant.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>(\])</string> | |
| <key>name</key> | |
| <string>meta.internalsubset.xml</string> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>include</key> | |
| <string>#EntityDecl</string> | |
| </dict> | |
| <dict> | |
| <key>include</key> | |
| <string>#parameterEntity</string> | |
| </dict> | |
| </array> | |
| </dict> | |
| <key>parameterEntity</key> | |
| <dict> | |
| <key>captures</key> | |
| <dict> | |
| <key>1</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.constant.xml</string> | |
| </dict> | |
| <key>3</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.constant.xml</string> | |
| </dict> | |
| </dict> | |
| <key>match</key> | |
| <string>(%)([:a-zA-Z_][:a-zA-Z0-9_.-]*)(;)</string> | |
| <key>name</key> | |
| <string>constant.character.parameter-entity.xml</string> | |
| </dict> | |
| <key>singlequotedString</key> | |
| <dict> | |
| <key>begin</key> | |
| <string>'</string> | |
| <key>beginCaptures</key> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.string.begin.xml</string> | |
| </dict> | |
| </dict> | |
| <key>end</key> | |
| <string>'</string> | |
| <key>endCaptures</key> | |
| <dict> | |
| <key>0</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.definition.string.end.xml</string> | |
| </dict> | |
| </dict> | |
| <key>name</key> | |
| <string>string.quoted.single.xml</string> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>include</key> | |
| <string>#entity</string> | |
| </dict> | |
| <dict> | |
| <key>include</key> | |
| <string>#bare-ampersand</string> | |
| </dict> | |
| </array> | |
| </dict> | |
| <key>tagStuff</key> | |
| <dict> | |
| <key>patterns</key> | |
| <array> | |
| <dict> | |
| <key>captures</key> | |
| <dict> | |
| <key>1</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.other.attribute-name.namespace.xml</string> | |
| </dict> | |
| <key>2</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.other.attribute-name.xml</string> | |
| </dict> | |
| <key>3</key> | |
| <dict> | |
| <key>name</key> | |
| <string>punctuation.separator.namespace.xml</string> | |
| </dict> | |
| <key>4</key> | |
| <dict> | |
| <key>name</key> | |
| <string>entity.other.attribute-name.localname.xml</string> | |
| </dict> | |
| </dict> | |
| <key>match</key> | |
| <string> (?:([-_a-zA-Z0-9]+)((:)))?([-_a-zA-Z0-9]+)=</string> | |
| </dict> | |
| <dict> | |
| <key>include</key> | |
| <string>#doublequotedString</string> | |
| </dict> | |
| <dict> | |
| <key>include</key> | |
| <string>#singlequotedString</string> | |
| </dict> | |
| </array> | |
| </dict> | |
| </dict> | |
| <key>scopeName</key> | |
| <string>text.xml</string> | |
| <key>uuid</key> | |
| <string>D3C4E6DA-6B1C-11D9-8CC2-000D93589AF6</string> | |
| </dict> | |
| </plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment