提交 94f8efcb 编写于 作者: M Martin Aeschlimann

[php] use grammar from atom/language-php

上级 4bbd43ed
// ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS: // ATTENTION - THIS DIRECTORY CONTAINS THIRD PARTY OPEN SOURCE MATERIALS:
[{ [{
"name": "language-php", "name": "language-php",
"version": "0.29.0", "version": "0.0.0",
"license": "MIT", "license": "MIT",
"repositoryURL": "https://github.com/atom/language-php", "repositoryURL": "https://github.com/atom/language-php",
"description": "The file snippets/php.json was derived from the Atom package https://atom.io/packages/language-php which was originally converted from the PHP TextMate bundle https://github.com/textmate/php.tmbundle." "description": "The files snippets/php.json & syntaxes/php.tmLanguage.json were derived from the Atom package https://atom.io/packages/language-php which was originally converted from the PHP TextMate bundle https://github.com/textmate/php.tmbundle."
},
{
"name": "textmate/php.tmbundle",
"version": "0.0.0",
"license": "TextMate Bundle License",
"repositoryURL": "https://github.com/textmate/php.tmbundle",
"licenseDetail": [
"Copyright (c) textmate-php.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\"."
]
}] }]
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"grammars": [{ "grammars": [{
"language": "php", "language": "php",
"scopeName": "text.html.php", "scopeName": "text.html.php",
"path": "./syntaxes/php.json", "path": "./syntaxes/php.tmLanguage.json",
"embeddedLanguages": { "embeddedLanguages": {
"text.html": "html", "text.html": "html",
"source.php": "php", "source.php": "php",
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
}, },
"scripts": { "scripts": {
"compile": "gulp compile-extension:php", "compile": "gulp compile-extension:php",
"watch": "gulp watch-extension:php" "watch": "gulp watch-extension:php",
"update-grammar": "node ../../build/npm/update-grammar.js atom/language-php grammars/php.cson ./syntaxes/php.tmLanguage.json"
} }
} }
\ No newline at end of file
此差异已折叠。
此差异已折叠。
...@@ -223,10 +223,10 @@ ...@@ -223,10 +223,10 @@
"c": "<?php", "c": "<?php",
"t": "begin.block.embedded.meta.metatag.php.punctuation.section", "t": "begin.block.embedded.meta.metatag.php.punctuation.section",
"r": { "r": {
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.metatag.php rgb(86, 156, 214)", "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.section.embedded.begin.metatag.php rgb(86, 156, 214)",
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.metatag.php rgb(128, 0, 0)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.section.embedded.begin.metatag.php rgb(128, 0, 0)",
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.metatag.php rgb(86, 156, 214)", "dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.punctuation.section.embedded.begin.metatag.php rgb(86, 156, 214)",
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.metatag.php rgb(128, 0, 0)", "light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.punctuation.section.embedded.begin.metatag.php rgb(128, 0, 0)",
"hc_black": ".hc-black .token rgb(255, 255, 255)" "hc_black": ".hc-black .token rgb(255, 255, 255)"
} }
}, },
...@@ -3237,10 +3237,10 @@ ...@@ -3237,10 +3237,10 @@
"c": "?", "c": "?",
"t": "block.embedded.end.meta.metatag.php.punctuation.section.source", "t": "block.embedded.end.meta.metatag.php.punctuation.section.source",
"r": { "r": {
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.metatag.php rgb(86, 156, 214)", "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.section.embedded.end.metatag.php rgb(86, 156, 214)",
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.metatag.php rgb(128, 0, 0)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.section.embedded.end.metatag.php rgb(128, 0, 0)",
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.metatag.php rgb(86, 156, 214)", "dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.punctuation.section.embedded.end.metatag.php rgb(86, 156, 214)",
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.metatag.php rgb(128, 0, 0)", "light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.punctuation.section.embedded.end.metatag.php rgb(128, 0, 0)",
"hc_black": ".hc-black .token rgb(255, 255, 255)" "hc_black": ".hc-black .token rgb(255, 255, 255)"
} }
}, },
...@@ -3248,10 +3248,10 @@ ...@@ -3248,10 +3248,10 @@
"c": ">", "c": ">",
"t": "block.embedded.end.meta.metatag.php.punctuation.section", "t": "block.embedded.end.meta.metatag.php.punctuation.section",
"r": { "r": {
"dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.metatag.php rgb(86, 156, 214)", "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.section.embedded.end.metatag.php rgb(86, 156, 214)",
"light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.metatag.php rgb(128, 0, 0)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.section.embedded.end.metatag.php rgb(128, 0, 0)",
"dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.metatag.php rgb(86, 156, 214)", "dark_vs": ".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.punctuation.section.embedded.end.metatag.php rgb(86, 156, 214)",
"light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.metatag.php rgb(128, 0, 0)", "light_vs": ".vs.vscode-theme-defaults-themes-light_vs-json .token.punctuation.section.embedded.end.metatag.php rgb(128, 0, 0)",
"hc_black": ".hc-black .token rgb(255, 255, 255)" "hc_black": ".hc-black .token rgb(255, 255, 255)"
} }
}, },
......
...@@ -271,7 +271,8 @@ ...@@ -271,7 +271,8 @@
} }
}, },
{ {
"scope": "metatag.php", "name": "coloring of the PHP start and end tag (<?php and ?>)",
"scope": ["punctuation.section.embedded.begin.metatag.php", "punctuation.section.embedded.end.metatag.php"],
"settings": { "settings": {
"foreground": "#569cd6" "foreground": "#569cd6"
} }
......
...@@ -268,7 +268,8 @@ ...@@ -268,7 +268,8 @@
} }
}, },
{ {
"scope": "metatag.php", "name": "coloring of the PHP start and end tag (<?php and ?>)",
"scope": ["punctuation.section.embedded.begin.metatag.php", "punctuation.section.embedded.end.metatag.php"],
"settings": { "settings": {
"foreground": "#800000" "foreground": "#800000"
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册