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

[xml] update grammar

上级 767b146e
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
"scopeName": "text.xml", "scopeName": "text.xml",
"name": "XML", "name": "XML",
"fileTypes": [ "fileTypes": [
"aiml",
"atom", "atom",
"axml", "axml",
"bpmn", "bpmn",
...@@ -21,6 +22,7 @@ ...@@ -21,6 +22,7 @@
"fodt", "fodt",
"fsproj", "fsproj",
"fxml", "fxml",
"gir",
"glade", "glade",
"gpx", "gpx",
"graphml", "graphml",
...@@ -29,6 +31,7 @@ ...@@ -29,6 +31,7 @@
"isml", "isml",
"jmx", "jmx",
"jsp", "jsp",
"kst",
"launch", "launch",
"menu", "menu",
"mxml", "mxml",
...@@ -44,7 +47,10 @@ ...@@ -44,7 +47,10 @@
"rdf", "rdf",
"rng", "rng",
"rss", "rss",
"sdf",
"shproj", "shproj",
"siml",
"sld",
"storyboard", "storyboard",
"svg", "svg",
"targets", "targets",
...@@ -57,7 +63,12 @@ ...@@ -57,7 +63,12 @@
"vcproj.filters", "vcproj.filters",
"vcxproj", "vcxproj",
"vcxproj.filters", "vcxproj.filters",
"wixmsp",
"wixmst",
"wixobj",
"wixout",
"wsdl", "wsdl",
"wxs",
"xaml", "xaml",
"xbl", "xbl",
"xib", "xib",
...@@ -69,6 +80,7 @@ ...@@ -69,6 +80,7 @@
"xul", "xul",
"ui" "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": [ "patterns": [
{ {
"begin": "(<\\?)\\s*([-_a-zA-Z0-9]+)", "begin": "(<\\?)\\s*([-_a-zA-Z0-9]+)",
...@@ -422,5 +434,5 @@ ...@@ -422,5 +434,5 @@
"name": "comment.block.xml" "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.
先完成此消息的编辑!
想要评论请 注册