提交 3d581324 编写于 作者: M Martin Aeschlimann

[xml] update grammar

上级 767b146e
......@@ -2,6 +2,7 @@
"scopeName": "text.xml",
"name": "XML",
"fileTypes": [
"aiml",
"atom",
"axml",
"bpmn",
......@@ -21,6 +22,7 @@
"fodt",
"fsproj",
"fxml",
"gir",
"glade",
"gpx",
"graphml",
......@@ -29,6 +31,7 @@
"isml",
"jmx",
"jsp",
"kst",
"launch",
"menu",
"mxml",
......@@ -44,7 +47,10 @@
"rdf",
"rng",
"rss",
"sdf",
"shproj",
"siml",
"sld",
"storyboard",
"svg",
"targets",
......@@ -57,7 +63,12 @@
"vcproj.filters",
"vcxproj",
"vcxproj.filters",
"wixmsp",
"wixmst",
"wixobj",
"wixout",
"wsdl",
"wxs",
"xaml",
"xbl",
"xib",
......@@ -69,6 +80,7 @@
"xul",
"ui"
],
"firstLineMatch": "(?x)\n# XML declaration\n(?:\n ^ <\\? xml\n\n # VersionInfo\n \\s+ version\n \\s* = \\s*\n (['\"])\n 1 \\. [0-9]+\n \\1\n\n # EncodingDecl\n (?:\n \\s+ encoding\n \\s* = \\s*\n\n # EncName\n (['\"])\n [A-Za-z]\n [-A-Za-z0-9._]*\n \\2\n )?\n\n # SDDecl\n (?:\n \\s+ standalone\n \\s* = \\s*\n (['\"])\n (?:yes|no)\n \\3\n )?\n\n \\s* \\?>\n)\n|\n# Modeline\n(?i:\n # Emacs\n -\\*-(?:\\s*(?=[^:;\\s]+\\s*-\\*-)|(?:.*?[;\\s]|(?<=-\\*-))mode\\s*:\\s*)\n xml\n (?=[\\s;]|(?<![-*])-\\*-).*?-\\*-\n |\n # Vim\n (?:(?:\\s|^)vi(?:m[<=>]?\\d+|m)?|\\sex)(?=:(?=\\s*set?\\s[^\\n:]+:)|:(?!\\s*set?\\s))(?:(?:\\s|\\s*:\\s*)\\w*(?:\\s*=(?:[^\\n\\\\\\s]|\\\\.)*)?)*[\\s:](?:filetype|ft|syntax)\\s*=\n xml\n (?=\\s|:|$)\n)",
"patterns": [
{
"begin": "(<\\?)\\s*([-_a-zA-Z0-9]+)",
......@@ -422,5 +434,5 @@
"name": "comment.block.xml"
}
},
"version": "https://github.com/atom/language-xml/commit/f461d428fb87040cb8a52d87d0b95151b9d3c0cc"
"version": "https://github.com/atom/language-xml/commit/ac6bc8ef6a9c79ac3c7e31615bc18436b0c815ab"
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册