mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
[xml] update grammar to atom/language-xml@f461d42 (2016-10-01). Fixes #13193.
This commit is contained in:
parent
1548a3f4da
commit
42a5c57451
|
@ -1,23 +1,10 @@
|
||||||
// ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS:
|
// ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS:
|
||||||
|
|
||||||
[{
|
[{
|
||||||
"name": "textmate/xml.tmbundle",
|
"name": "atom/language-xml",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"license": "TextMate Bundle License",
|
"license": "MIT",
|
||||||
"repositoryURL": "https://github.com/textmate/xml.tmbundle",
|
"repositoryURL": "https://github.com/atom/language-xml",
|
||||||
"licenseDetail": [
|
"description": "The files syntaxes/xml.json and syntaxes/xsl.json were derived from the Atom package https://github.com/atom/language-xml which were originally converted from the TextMate bundle https://github.com/textmate/xml.tmbundle."
|
||||||
"Copyright (c) textmate-xml.tmbundle project authors",
|
|
||||||
"",
|
|
||||||
"If not otherwise specified (see below), files in this repository fall under the following license:",
|
|
||||||
"",
|
|
||||||
"Permission to copy, use, modify, sell and distribute this",
|
|
||||||
"software is granted. This software is provided \"as is\" without",
|
|
||||||
"express or implied warranty, and with no claim as to its",
|
|
||||||
"suitability for any purpose.",
|
|
||||||
"",
|
|
||||||
"An exception is made for files in readable text which contain their own license information,",
|
|
||||||
"or files where an accompanying file exists (in the same directory) with a \"-license\" suffix added",
|
|
||||||
"to the base-name name of the original file, and an extension of txt, html, or similar. For example",
|
|
||||||
"\"tidy\" is accompanied by \"tidy-license.txt\"."
|
|
||||||
]
|
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -77,11 +77,14 @@
|
||||||
"grammars": [{
|
"grammars": [{
|
||||||
"language": "xml",
|
"language": "xml",
|
||||||
"scopeName": "text.xml",
|
"scopeName": "text.xml",
|
||||||
"path": "./syntaxes/XML.plist"
|
"path": "./syntaxes/xml.json"
|
||||||
}, {
|
}, {
|
||||||
"language": "xsl",
|
"language": "xsl",
|
||||||
"scopeName": "text.xml.xsl",
|
"scopeName": "text.xml.xsl",
|
||||||
"path": "./syntaxes/XSL.plist"
|
"path": "./syntaxes/xsl.json"
|
||||||
}]
|
}]
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"update-grammar": "node ../../build/npm/update-grammar.js atom/language-xml grammars/xml.cson ./syntaxes/xml.json grammars/xsl.cson ./syntaxes/xsl.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,573 +0,0 @@
|
||||||
<?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>xsd</string>
|
|
||||||
<string>tld</string>
|
|
||||||
<string>jsp</string>
|
|
||||||
<string>pt</string>
|
|
||||||
<string>cpt</string>
|
|
||||||
<string>dtml</string>
|
|
||||||
<string>rss</string>
|
|
||||||
<string>opml</string>
|
|
||||||
</array>
|
|
||||||
<key>keyEquivalent</key>
|
|
||||||
<string>^~X</string>
|
|
||||||
<key>name</key>
|
|
||||||
<string>XML</string>
|
|
||||||
<key>patterns</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>begin</key>
|
|
||||||
<string>(<\?)\s*([-_\p{L}\d]+)</string>
|
|
||||||
<key>captures</key>
|
|
||||||
<dict>
|
|
||||||
<key>1</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>punctuation.definition.tag.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> ([\p{L}-]+)</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+([:\p{L}_][:\p{L}\d_.-]*)</string>
|
|
||||||
<key>captures</key>
|
|
||||||
<dict>
|
|
||||||
<key>1</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>punctuation.definition.tag.xml</string>
|
|
||||||
</dict>
|
|
||||||
<key>2</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>keyword.other.doctype.xml</string>
|
|
||||||
</dict>
|
|
||||||
<key>3</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>variable.language.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>(<)((?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+))(?=(\s[^>]*)?></\2>)</string>
|
|
||||||
<key>beginCaptures</key>
|
|
||||||
<dict>
|
|
||||||
<key>1</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>punctuation.definition.tag.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>(>(<))/(?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+)(>)</string>
|
|
||||||
<key>endCaptures</key>
|
|
||||||
<dict>
|
|
||||||
<key>1</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>punctuation.definition.tag.xml</string>
|
|
||||||
</dict>
|
|
||||||
<key>2</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>meta.scope.between-tag-pair.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>
|
|
||||||
<key>7</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>punctuation.definition.tag.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>(</?)(?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d:]+)</string>
|
|
||||||
<key>captures</key>
|
|
||||||
<dict>
|
|
||||||
<key>1</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>punctuation.definition.tag.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>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+)?([:\p{L}_][:\p{L}\d_.-]*)(\s+(?:SYSTEM|PUBLIC)\s+)?</string>
|
|
||||||
<key>captures</key>
|
|
||||||
<dict>
|
|
||||||
<key>1</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>punctuation.definition.tag.xml</string>
|
|
||||||
</dict>
|
|
||||||
<key>2</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>keyword.other.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.language.entity.xml</string>
|
|
||||||
</dict>
|
|
||||||
<key>5</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>keyword.other.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>(&)([:\p{L}_][:\p{L}\d_.-]*|#[\d]+|#x[\da-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>(%)([:\p{L}_][:\p{L}\d_.-]*)(;)</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> (?:([-_\p{L}\d]+)((:)))?([-_\p{L}\d]+)=</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>
|
|
|
@ -1,153 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>fileTypes</key>
|
|
||||||
<array>
|
|
||||||
<string>xsl</string>
|
|
||||||
<string>xslt</string>
|
|
||||||
</array>
|
|
||||||
<key>keyEquivalent</key>
|
|
||||||
<string>^~X</string>
|
|
||||||
<key>name</key>
|
|
||||||
<string>XSL</string>
|
|
||||||
<key>patterns</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>begin</key>
|
|
||||||
<string>(<)(xsl)((:))(template)</string>
|
|
||||||
<key>captures</key>
|
|
||||||
<dict>
|
|
||||||
<key>1</key>
|
|
||||||
<dict>
|
|
||||||
<key>name</key>
|
|
||||||
<string>punctuation.definition.tag.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>name</key>
|
|
||||||
<string>meta.tag.xml.template</string>
|
|
||||||
<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> (?:([-_\p{L}\d]+)((:)))?([\p{L}-]+)</string>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>include</key>
|
|
||||||
<string>#doublequotedString</string>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>include</key>
|
|
||||||
<string>#singlequotedString</string>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>include</key>
|
|
||||||
<string>text.xml</string>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>repository</key>
|
|
||||||
<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>
|
|
||||||
</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>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<key>scopeName</key>
|
|
||||||
<string>text.xml.xsl</string>
|
|
||||||
<key>uuid</key>
|
|
||||||
<string>DB8033A1-6D8E-4D80-B8A2-8768AAC6125D</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
426
extensions/xml/syntaxes/xml.json
Normal file
426
extensions/xml/syntaxes/xml.json
Normal file
|
@ -0,0 +1,426 @@
|
||||||
|
{
|
||||||
|
"scopeName": "text.xml",
|
||||||
|
"name": "XML",
|
||||||
|
"fileTypes": [
|
||||||
|
"atom",
|
||||||
|
"axml",
|
||||||
|
"bpmn",
|
||||||
|
"config",
|
||||||
|
"cpt",
|
||||||
|
"csl",
|
||||||
|
"csproj",
|
||||||
|
"csproj.user",
|
||||||
|
"dae",
|
||||||
|
"dia",
|
||||||
|
"dita",
|
||||||
|
"ditamap",
|
||||||
|
"dtml",
|
||||||
|
"fodg",
|
||||||
|
"fodp",
|
||||||
|
"fods",
|
||||||
|
"fodt",
|
||||||
|
"fsproj",
|
||||||
|
"fxml",
|
||||||
|
"glade",
|
||||||
|
"gpx",
|
||||||
|
"graphml",
|
||||||
|
"icls",
|
||||||
|
"iml",
|
||||||
|
"isml",
|
||||||
|
"jmx",
|
||||||
|
"jsp",
|
||||||
|
"launch",
|
||||||
|
"menu",
|
||||||
|
"mxml",
|
||||||
|
"nuspec",
|
||||||
|
"opml",
|
||||||
|
"owl",
|
||||||
|
"pom",
|
||||||
|
"ppj",
|
||||||
|
"proj",
|
||||||
|
"pt",
|
||||||
|
"pubxml",
|
||||||
|
"pubxml.user",
|
||||||
|
"rdf",
|
||||||
|
"rng",
|
||||||
|
"rss",
|
||||||
|
"shproj",
|
||||||
|
"storyboard",
|
||||||
|
"svg",
|
||||||
|
"targets",
|
||||||
|
"tld",
|
||||||
|
"vbox",
|
||||||
|
"vbox-prev",
|
||||||
|
"vbproj",
|
||||||
|
"vbproj.user",
|
||||||
|
"vcproj",
|
||||||
|
"vcproj.filters",
|
||||||
|
"vcxproj",
|
||||||
|
"vcxproj.filters",
|
||||||
|
"wsdl",
|
||||||
|
"xaml",
|
||||||
|
"xbl",
|
||||||
|
"xib",
|
||||||
|
"xlf",
|
||||||
|
"xliff",
|
||||||
|
"xml",
|
||||||
|
"xpdl",
|
||||||
|
"xsd",
|
||||||
|
"xul",
|
||||||
|
"ui"
|
||||||
|
],
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"begin": "(<\\?)\\s*([-_a-zA-Z0-9]+)",
|
||||||
|
"captures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.tag.xml"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"name": "entity.name.tag.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "(\\?>)",
|
||||||
|
"name": "meta.tag.preprocessor.xml",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"match": " ([a-zA-Z-]+)",
|
||||||
|
"name": "entity.other.attribute-name.xml"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#doublequotedString"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#singlequotedString"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"begin": "(<!)(DOCTYPE)\\s+([:a-zA-Z_][:a-zA-Z0-9_.-]*)",
|
||||||
|
"captures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.tag.xml"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"name": "keyword.other.doctype.xml"
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
|
"name": "variable.language.documentroot.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "\\s*(>)",
|
||||||
|
"name": "meta.tag.sgml.doctype.xml",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "#internalSubset"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#comments"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"begin": "(<)((?:([-_a-zA-Z0-9]+)(:))?([-_a-zA-Z0-9:]+))(?=(\\s[^>]*)?></\\2>)",
|
||||||
|
"beginCaptures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.tag.xml"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"name": "entity.name.tag.xml"
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
|
"name": "entity.name.tag.namespace.xml"
|
||||||
|
},
|
||||||
|
"4": {
|
||||||
|
"name": "punctuation.separator.namespace.xml"
|
||||||
|
},
|
||||||
|
"5": {
|
||||||
|
"name": "entity.name.tag.localname.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "(>)(</)((?:([-_a-zA-Z0-9]+)(:))?([-_a-zA-Z0-9:]+))(>)",
|
||||||
|
"endCaptures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.tag.xml"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"name": "punctuation.definition.tag.xml"
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
|
"name": "entity.name.tag.xml"
|
||||||
|
},
|
||||||
|
"4": {
|
||||||
|
"name": "entity.name.tag.namespace.xml"
|
||||||
|
},
|
||||||
|
"5": {
|
||||||
|
"name": "punctuation.separator.namespace.xml"
|
||||||
|
},
|
||||||
|
"6": {
|
||||||
|
"name": "entity.name.tag.localname.xml"
|
||||||
|
},
|
||||||
|
"7": {
|
||||||
|
"name": "punctuation.definition.tag.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "meta.tag.no-content.xml",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "#tagStuff"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"begin": "(</?)(?:([-\\w\\.]+)((:)))?([-\\w\\.:]+)",
|
||||||
|
"captures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.tag.xml"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"name": "entity.name.tag.namespace.xml"
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
|
"name": "entity.name.tag.xml"
|
||||||
|
},
|
||||||
|
"4": {
|
||||||
|
"name": "punctuation.separator.namespace.xml"
|
||||||
|
},
|
||||||
|
"5": {
|
||||||
|
"name": "entity.name.tag.localname.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "(/?>)",
|
||||||
|
"name": "meta.tag.xml",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "#tagStuff"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#entity"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#bare-ampersand"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"begin": "<%@",
|
||||||
|
"beginCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.section.embedded.begin.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "%>",
|
||||||
|
"endCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.section.embedded.end.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "source.java-props.embedded.xml",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"match": "page|include|taglib",
|
||||||
|
"name": "keyword.other.page-props.xml"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"begin": "<%[!=]?(?!--)",
|
||||||
|
"beginCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.section.embedded.begin.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "(?!--)%>",
|
||||||
|
"endCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.section.embedded.end.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "source.java.embedded.xml",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "source.java"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"begin": "<!\\[CDATA\\[",
|
||||||
|
"beginCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.definition.string.begin.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "]]>",
|
||||||
|
"endCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.definition.string.end.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "string.unquoted.cdata.xml"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"EntityDecl": {
|
||||||
|
"begin": "(<!)(ENTITY)\\s+(%\\s+)?([:a-zA-Z_][:a-zA-Z0-9_.-]*)(\\s+(?:SYSTEM|PUBLIC)\\s+)?",
|
||||||
|
"captures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.tag.xml"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"name": "keyword.other.entity.xml"
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
|
"name": "punctuation.definition.entity.xml"
|
||||||
|
},
|
||||||
|
"4": {
|
||||||
|
"name": "variable.language.entity.xml"
|
||||||
|
},
|
||||||
|
"5": {
|
||||||
|
"name": "keyword.other.entitytype.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "(>)",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "#doublequotedString"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#singlequotedString"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"bare-ampersand": {
|
||||||
|
"match": "&",
|
||||||
|
"name": "invalid.illegal.bad-ampersand.xml"
|
||||||
|
},
|
||||||
|
"doublequotedString": {
|
||||||
|
"begin": "\"",
|
||||||
|
"beginCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.definition.string.begin.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "\"",
|
||||||
|
"endCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.definition.string.end.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "string.quoted.double.xml",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "#entity"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#bare-ampersand"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"entity": {
|
||||||
|
"captures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.constant.xml"
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
|
"name": "punctuation.definition.constant.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"match": "(&)([:a-zA-Z_][:a-zA-Z0-9_.-]*|#[0-9]+|#x[0-9a-fA-F]+)(;)",
|
||||||
|
"name": "constant.character.entity.xml"
|
||||||
|
},
|
||||||
|
"internalSubset": {
|
||||||
|
"begin": "(\\[)",
|
||||||
|
"captures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.constant.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "(\\])",
|
||||||
|
"name": "meta.internalsubset.xml",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "#EntityDecl"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#parameterEntity"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#comments"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"parameterEntity": {
|
||||||
|
"captures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.constant.xml"
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
|
"name": "punctuation.definition.constant.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"match": "(%)([:a-zA-Z_][:a-zA-Z0-9_.-]*)(;)",
|
||||||
|
"name": "constant.character.parameter-entity.xml"
|
||||||
|
},
|
||||||
|
"singlequotedString": {
|
||||||
|
"begin": "'",
|
||||||
|
"beginCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.definition.string.begin.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "'",
|
||||||
|
"endCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.definition.string.end.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "string.quoted.single.xml",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "#entity"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#bare-ampersand"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tagStuff": {
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"captures": {
|
||||||
|
"1": {
|
||||||
|
"name": "entity.other.attribute-name.namespace.xml"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"name": "entity.other.attribute-name.xml"
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
|
"name": "punctuation.separator.namespace.xml"
|
||||||
|
},
|
||||||
|
"4": {
|
||||||
|
"name": "entity.other.attribute-name.localname.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"match": "(?:^|\\s+)(?:([-\\w.]+)((:)))?([-\\w.:]+)="
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#doublequotedString"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#singlequotedString"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"comments": {
|
||||||
|
"begin": "<[!%]--",
|
||||||
|
"captures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.definition.comment.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "--%?>",
|
||||||
|
"name": "comment.block.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"version": "https://github.com/atom/language-xml/commit/f461d428fb87040cb8a52d87d0b95151b9d3c0cc"
|
||||||
|
}
|
93
extensions/xml/syntaxes/xsl.json
Normal file
93
extensions/xml/syntaxes/xsl.json
Normal file
|
@ -0,0 +1,93 @@
|
||||||
|
{
|
||||||
|
"scopeName": "text.xml.xsl",
|
||||||
|
"name": "XSL",
|
||||||
|
"fileTypes": [
|
||||||
|
"xsl",
|
||||||
|
"xslt"
|
||||||
|
],
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"begin": "(<)(xsl)((:))(template)",
|
||||||
|
"captures": {
|
||||||
|
"1": {
|
||||||
|
"name": "punctuation.definition.tag.xml"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"name": "entity.name.tag.namespace.xml"
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
|
"name": "entity.name.tag.xml"
|
||||||
|
},
|
||||||
|
"4": {
|
||||||
|
"name": "punctuation.separator.namespace.xml"
|
||||||
|
},
|
||||||
|
"5": {
|
||||||
|
"name": "entity.name.tag.localname.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "(>)",
|
||||||
|
"name": "meta.tag.xml.template",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"captures": {
|
||||||
|
"1": {
|
||||||
|
"name": "entity.other.attribute-name.namespace.xml"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"name": "entity.other.attribute-name.xml"
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
|
"name": "punctuation.separator.namespace.xml"
|
||||||
|
},
|
||||||
|
"4": {
|
||||||
|
"name": "entity.other.attribute-name.localname.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"match": " (?:([-_a-zA-Z0-9]+)((:)))?([a-zA-Z-]+)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#doublequotedString"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#singlequotedString"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "text.xml"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"doublequotedString": {
|
||||||
|
"begin": "\"",
|
||||||
|
"beginCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.definition.string.begin.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "\"",
|
||||||
|
"endCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.definition.string.end.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "string.quoted.double.xml"
|
||||||
|
},
|
||||||
|
"singlequotedString": {
|
||||||
|
"begin": "'",
|
||||||
|
"beginCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.definition.string.begin.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"end": "'",
|
||||||
|
"endCaptures": {
|
||||||
|
"0": {
|
||||||
|
"name": "punctuation.definition.string.end.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "string.quoted.single.xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"version": "https://github.com/atom/language-xml/commit/507de2ee7daca60cf02e9e21fbeb92bbae73e280"
|
||||||
|
}
|
|
@ -1353,7 +1353,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"c": "VisualState",
|
"c": "VisualState.Setters",
|
||||||
"t": "entity.localname.meta.name.tag.xml",
|
"t": "entity.localname.meta.name.tag.xml",
|
||||||
"r": {
|
"r": {
|
||||||
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.entity.name.tag rgb(86, 156, 214)",
|
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.entity.name.tag rgb(86, 156, 214)",
|
||||||
|
@ -1363,17 +1363,6 @@
|
||||||
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.entity.name.tag rgb(86, 156, 214)"
|
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.entity.name.tag rgb(86, 156, 214)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"c": ".Setters",
|
|
||||||
"t": "meta.tag.xml",
|
|
||||||
"r": {
|
|
||||||
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.meta.tag rgb(128, 128, 128)",
|
|
||||||
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.meta.tag rgb(128, 0, 0)",
|
|
||||||
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.meta.tag rgb(128, 128, 128)",
|
|
||||||
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.meta.tag rgb(128, 0, 0)",
|
|
||||||
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.meta.tag rgb(128, 128, 128)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"c": ">",
|
"c": ">",
|
||||||
"t": "definition.meta.punctuation.tag.xml",
|
"t": "definition.meta.punctuation.tag.xml",
|
||||||
|
@ -1760,7 +1749,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"c": "VisualState",
|
"c": "VisualState.Setters",
|
||||||
"t": "entity.localname.meta.name.tag.xml",
|
"t": "entity.localname.meta.name.tag.xml",
|
||||||
"r": {
|
"r": {
|
||||||
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.entity.name.tag rgb(86, 156, 214)",
|
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.entity.name.tag rgb(86, 156, 214)",
|
||||||
|
@ -1770,17 +1759,6 @@
|
||||||
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.entity.name.tag rgb(86, 156, 214)"
|
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.entity.name.tag rgb(86, 156, 214)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"c": ".Setters",
|
|
||||||
"t": "meta.tag.xml",
|
|
||||||
"r": {
|
|
||||||
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.meta.tag rgb(128, 128, 128)",
|
|
||||||
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.meta.tag rgb(128, 0, 0)",
|
|
||||||
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.meta.tag rgb(128, 128, 128)",
|
|
||||||
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.meta.tag rgb(128, 0, 0)",
|
|
||||||
"hc_black": ".hc-black.vscode-theme-defaults-themes-hc_black-json .token.meta.tag rgb(128, 128, 128)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"c": ">",
|
"c": ">",
|
||||||
"t": "definition.meta.punctuation.tag.xml",
|
"t": "definition.meta.punctuation.tag.xml",
|
||||||
|
|
Loading…
Reference in a new issue