Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'
This commit is contained in:
18
lib/vscode/extensions/php/.vscode/launch.json
vendored
Normal file
18
lib/vscode/extensions/php/.vscode/launch.json
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch Extension",
|
||||
"type": "extensionHost",
|
||||
"request": "launch",
|
||||
"runtimeExecutable": "${execPath}",
|
||||
"args": [
|
||||
"--extensionDevelopmentPath=${workspaceFolder}"
|
||||
],
|
||||
"stopOnEntry": false,
|
||||
"sourceMaps": true,
|
||||
"outDir": "${workspaceFolder}/out",
|
||||
"preLaunchTask": "npm"
|
||||
}
|
||||
]
|
||||
}
|
11
lib/vscode/extensions/php/.vscode/tasks.json
vendored
Normal file
11
lib/vscode/extensions/php/.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"command": "npm",
|
||||
"type": "shell",
|
||||
"presentation": {
|
||||
"reveal": "silent"
|
||||
},
|
||||
"args": ["run", "compile"],
|
||||
"isBackground": true,
|
||||
"problemMatcher": "$tsc-watch"
|
||||
}
|
7
lib/vscode/extensions/php/.vscodeignore
Normal file
7
lib/vscode/extensions/php/.vscodeignore
Normal file
@ -0,0 +1,7 @@
|
||||
test/**
|
||||
build/**
|
||||
out/test/**
|
||||
src/**
|
||||
tsconfig.json
|
||||
cgmanifest.json
|
||||
.vscode
|
75
lib/vscode/extensions/php/build/update-grammar.js
Normal file
75
lib/vscode/extensions/php/build/update-grammar.js
Normal file
@ -0,0 +1,75 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
|
||||
const updateGrammar = require('../../../build/npm/update-grammar');
|
||||
|
||||
function adaptInjectionScope(grammar) {
|
||||
// we're using the HTML grammar from https://github.com/textmate/html.tmbundle which has moved away from source.js.embedded.html
|
||||
// also we need to add source.css scope for PHP code in <style> tags, which are handled differently in atom
|
||||
const oldInjectionKey = "text.html.php - (meta.embedded | meta.tag), L:((text.html.php meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js.embedded.html - (meta.embedded.block.php | meta.embedded.line.php))";
|
||||
const newInjectionKey = "text.html.php - (meta.embedded | meta.tag), L:((text.html.php meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.css - (meta.embedded.block.php | meta.embedded.line.php))";
|
||||
|
||||
const injections = grammar.injections;
|
||||
const injection = injections[oldInjectionKey];
|
||||
if (!injection) {
|
||||
throw new Error("Can not find PHP injection to patch");
|
||||
}
|
||||
delete injections[oldInjectionKey];
|
||||
injections[newInjectionKey] = injection;
|
||||
}
|
||||
|
||||
function includeDerivativeHtml(grammar) {
|
||||
grammar.patterns.forEach(pattern => {
|
||||
if (pattern.include === 'text.html.basic') {
|
||||
pattern.include = 'text.html.derivative';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Workaround for https://github.com/microsoft/vscode/issues/40279
|
||||
// and https://github.com/microsoft/vscode-textmate/issues/59
|
||||
function fixBadRegex(grammar) {
|
||||
function fail(msg) {
|
||||
throw new Error(`fixBadRegex callback couldn't patch ${msg}. It may be obsolete`);
|
||||
}
|
||||
|
||||
const scopeResolution = grammar.repository['scope-resolution'];
|
||||
if (scopeResolution) {
|
||||
const match = scopeResolution.patterns[0].match;
|
||||
if (match === '(?i)([a-z_\\x{7f}-\\x{7fffffff}\\\\][a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(?=\\s*::)') {
|
||||
scopeResolution.patterns[0].match = '([A-Za-z_\\x{7f}-\\x{7fffffff}\\\\][A-Za-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(?=\\s*::)';
|
||||
} else {
|
||||
fail('scope-resolution.match');
|
||||
}
|
||||
} else {
|
||||
fail('scope-resolution');
|
||||
}
|
||||
|
||||
const functionCall = grammar.repository['function-call'];
|
||||
if (functionCall) {
|
||||
const begin0 = functionCall.patterns[0].begin;
|
||||
if (begin0 === '(?xi)\n(\n \\\\?(?<![a-z0-9_\\x{7f}-\\x{7fffffff}]) # Optional root namespace\n [a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]* # First namespace\n (?:\\\\[a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)+ # Additional namespaces\n)\\s*(\\()') {
|
||||
functionCall.patterns[0].begin = '(?x)\n(\n \\\\?(?<![a-zA-Z0-9_\\x{7f}-\\x{7fffffff}]) # Optional root namespace\n [a-zA-Z_\\x{7f}-\\x{7fffffff}][a-zA-Z0-9_\\x{7f}-\\x{7fffffff}]* # First namespace\n (?:\\\\[a-zA-Z_\\x{7f}-\\x{7fffffff}][a-zA-Z0-9_\\x{7f}-\\x{7fffffff}]*)+ # Additional namespaces\n)\\s*(\\()';
|
||||
} else {
|
||||
fail('function-call.begin0');
|
||||
}
|
||||
|
||||
const begin1 = functionCall.patterns[1].begin;
|
||||
if (begin1 === '(?i)(\\\\)?(?<![a-z0-9_\\x{7f}-\\x{7fffffff}])([a-z_\\x{7f}-\\x{7fffffff}][a-z0-9_\\x{7f}-\\x{7fffffff}]*)\\s*(\\()') {
|
||||
functionCall.patterns[1].begin = '(\\\\)?(?<![a-zA-Z0-9_\\x{7f}-\\x{7fffffff}])([a-zA-Z_\\x{7f}-\\x{7fffffff}][a-zA-Z0-9_\\x{7f}-\\x{7fffffff}]*)\\s*(\\()';
|
||||
} else {
|
||||
fail('function-call.begin1');
|
||||
}
|
||||
} else {
|
||||
fail('function-call');
|
||||
}
|
||||
}
|
||||
|
||||
updateGrammar.update('atom/language-php', 'grammars/php.cson', './syntaxes/php.tmLanguage.json', fixBadRegex);
|
||||
updateGrammar.update('atom/language-php', 'grammars/html.cson', './syntaxes/html.tmLanguage.json', grammar => {
|
||||
adaptInjectionScope(grammar);
|
||||
includeDerivativeHtml(grammar);
|
||||
});
|
17
lib/vscode/extensions/php/cgmanifest.json
Normal file
17
lib/vscode/extensions/php/cgmanifest.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"registrations": [
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"name": "language-php",
|
||||
"repositoryUrl": "https://github.com/atom/language-php",
|
||||
"commitHash": "6c0da475f86b45ea990638525f68be7658986546"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"version": "0.44.5"
|
||||
}
|
||||
],
|
||||
"version": 1
|
||||
}
|
37
lib/vscode/extensions/php/language-configuration.json
Normal file
37
lib/vscode/extensions/php/language-configuration.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"comments": {
|
||||
"lineComment": "//", // "#"
|
||||
"blockComment": [ "/*", "*/" ]
|
||||
},
|
||||
"brackets": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
{ "open": "{", "close": "}", "notIn": ["string"] },
|
||||
{ "open": "[", "close": "]", "notIn": ["string"] },
|
||||
{ "open": "(", "close": ")", "notIn": ["string"] },
|
||||
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
|
||||
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
|
||||
{ "open": "/**", "close": " */", "notIn": ["string"] }
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["'", "'"],
|
||||
["\"", "\""],
|
||||
["`", "`"]
|
||||
],
|
||||
"indentationRules": {
|
||||
"increaseIndentPattern": "({(?!.*}).*|\\(|\\[|((else(\\s)?)?if|else|for(each)?|while|switch|case).*:)\\s*((/[/*].*|)?$|\\?>)",
|
||||
"decreaseIndentPattern": "^(.*\\*\\/)?\\s*((\\})|(\\)+[;,])|(\\][;,])|\\b(else:)|\\b((end(if|for(each)?|while|switch)|break);))"
|
||||
},
|
||||
"folding": {
|
||||
"markers": {
|
||||
"start": "^\\s*(#|\/\/)region\\b",
|
||||
"end": "^\\s*(#|\/\/)endregion\\b"
|
||||
}
|
||||
}
|
||||
}
|
64
lib/vscode/extensions/php/package.json
Normal file
64
lib/vscode/extensions/php/package.json
Normal file
@ -0,0 +1,64 @@
|
||||
{
|
||||
"name": "php",
|
||||
"displayName": "%displayName%",
|
||||
"description": "%description%",
|
||||
"version": "1.0.0",
|
||||
"publisher": "vscode",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"vscode": "0.10.x"
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
"id": "php",
|
||||
"extensions": [
|
||||
".php",
|
||||
".php4",
|
||||
".php5",
|
||||
".phtml",
|
||||
".ctp"
|
||||
],
|
||||
"aliases": [
|
||||
"PHP",
|
||||
"php"
|
||||
],
|
||||
"firstLine": "^#!\\s*/.*\\bphp\\b",
|
||||
"mimetypes": [
|
||||
"application/x-php"
|
||||
],
|
||||
"configuration": "./language-configuration.json"
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "php",
|
||||
"scopeName": "source.php",
|
||||
"path": "./syntaxes/php.tmLanguage.json"
|
||||
},
|
||||
{
|
||||
"language": "php",
|
||||
"scopeName": "text.html.php",
|
||||
"path": "./syntaxes/html.tmLanguage.json",
|
||||
"embeddedLanguages": {
|
||||
"text.html": "html",
|
||||
"source.php": "php",
|
||||
"source.sql": "sql",
|
||||
"text.xml": "xml",
|
||||
"source.js": "javascript",
|
||||
"source.json": "json",
|
||||
"source.css": "css"
|
||||
}
|
||||
}
|
||||
],
|
||||
"snippets": [
|
||||
{
|
||||
"language": "php",
|
||||
"path": "./snippets/php.code-snippets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"update-grammar": "node ./build/update-grammar.js"
|
||||
}
|
||||
}
|
4
lib/vscode/extensions/php/package.nls.json
Normal file
4
lib/vscode/extensions/php/package.nls.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"displayName": "PHP Language Basics",
|
||||
"description": "Provides syntax highlighting and bracket matching for PHP files."
|
||||
}
|
263
lib/vscode/extensions/php/snippets/php.code-snippets
Normal file
263
lib/vscode/extensions/php/snippets/php.code-snippets
Normal file
@ -0,0 +1,263 @@
|
||||
{
|
||||
"class …": {
|
||||
"prefix": "class",
|
||||
"body": [
|
||||
"class ${1:ClassName} ${2:extends ${3:AnotherClass}} ${4:implements ${5:Interface}}",
|
||||
"{",
|
||||
"\t$0",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"description": "Class definition"
|
||||
},
|
||||
"PHPDoc class …": {
|
||||
"prefix": "doc_class",
|
||||
"body": [
|
||||
"/**",
|
||||
" * ${6:undocumented class}",
|
||||
" */",
|
||||
"class ${1:ClassName} ${2:extends ${3:AnotherClass}} ${4:implements ${5:Interface}}",
|
||||
"{",
|
||||
"\t$0",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"description": "Documented Class Declaration"
|
||||
},
|
||||
"function __construct": {
|
||||
"prefix": "con",
|
||||
"body": [
|
||||
"${1:public} function __construct(${2:${3:Type} $${4:var}${5: = ${6:null}}}) {",
|
||||
"\t\\$this->${4:var} = $${4:var};$0",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"PHPDoc property": {
|
||||
"prefix": "doc_v",
|
||||
"body": [
|
||||
"/** @var ${1:Type} $${2:var} ${3:description} */",
|
||||
"${4:protected} $${2:var}${5: = ${6:null}};$0"
|
||||
],
|
||||
"description": "Documented Class Variable"
|
||||
},
|
||||
"PHPDoc function …": {
|
||||
"prefix": "doc_f",
|
||||
"body": [
|
||||
"/**",
|
||||
" * ${1:undocumented function summary}",
|
||||
" *",
|
||||
" * ${2:Undocumented function long description}",
|
||||
" *",
|
||||
"${3: * @param ${4:Type} $${5:var} ${6:Description}}",
|
||||
"${7: * @return ${8:type}}",
|
||||
"${9: * @throws ${10:conditon}}",
|
||||
" **/",
|
||||
"${11:public }function ${12:FunctionName}(${13:${14:${4:Type} }$${5:var}${15: = ${16:null}}})",
|
||||
"{",
|
||||
"\t${0:# code...}",
|
||||
"}"
|
||||
],
|
||||
"description": "Documented function"
|
||||
},
|
||||
"PHPDoc param …": {
|
||||
"prefix": "param",
|
||||
"body": [
|
||||
"* @param ${1:Type} ${2:var} ${3:Description}$0"
|
||||
],
|
||||
"description": "Paramater documentation"
|
||||
},
|
||||
"function …": {
|
||||
"prefix": "fun",
|
||||
"body": [
|
||||
"${1:public }function ${2:FunctionName}(${3:${4:${5:Type} }$${6:var}${7: = ${8:null}}})",
|
||||
"{",
|
||||
"\t${0:# code...}",
|
||||
"}"
|
||||
],
|
||||
"description": "Function"
|
||||
},
|
||||
"trait …": {
|
||||
"prefix": "trait",
|
||||
"body": [
|
||||
"/**",
|
||||
" * $1",
|
||||
" */",
|
||||
"trait ${2:TraitName}",
|
||||
"{",
|
||||
"\t$0",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"description": "Trait"
|
||||
},
|
||||
"define(…, …)": {
|
||||
"prefix": "def",
|
||||
"body": [
|
||||
"define('$1', ${2:'$3'});",
|
||||
"$0"
|
||||
],
|
||||
"description": "Definition"
|
||||
},
|
||||
"do … while …": {
|
||||
"prefix": "do",
|
||||
"body": [
|
||||
"do {",
|
||||
"\t${0:# code...}",
|
||||
"} while (${1:$${2:a} <= ${3:10}});"
|
||||
],
|
||||
"description": "Do-While loop"
|
||||
},
|
||||
"while …": {
|
||||
"prefix": "while",
|
||||
"body": [
|
||||
"while (${1:$${2:a} <= ${3:10}}) {",
|
||||
"\t${0:# code...}",
|
||||
"}"
|
||||
],
|
||||
"description": "While-loop"
|
||||
},
|
||||
"if …": {
|
||||
"prefix": "if",
|
||||
"body": [
|
||||
"if (${1:condition}) {",
|
||||
"\t${0:# code...}",
|
||||
"}"
|
||||
],
|
||||
"description": "If block"
|
||||
},
|
||||
"if … else …": {
|
||||
"prefix": "ifelse",
|
||||
"body": [
|
||||
"if (${1:condition}) {",
|
||||
"\t${2:# code...}",
|
||||
"} else {",
|
||||
"\t${3:# code...}",
|
||||
"}",
|
||||
"$0"
|
||||
],
|
||||
"description": "If Else block"
|
||||
},
|
||||
"$… = ( … ) ? … : …": {
|
||||
"prefix": "if?",
|
||||
"body": "$${1:retVal} = (${2:condition}) ? ${3:a} : ${4:b} ;",
|
||||
"description": "Ternary conditional assignment"
|
||||
},
|
||||
"else …": {
|
||||
"prefix": "else",
|
||||
"body": [
|
||||
"else {",
|
||||
"\t${0:# code...}",
|
||||
"}"
|
||||
],
|
||||
"description": "Else block"
|
||||
},
|
||||
"elseif …": {
|
||||
"prefix": "elseif",
|
||||
"body": [
|
||||
"elseif (${1:condition}) {",
|
||||
"\t${0:# code...}",
|
||||
"}"
|
||||
],
|
||||
"description": "Elseif block"
|
||||
},
|
||||
"for …": {
|
||||
"prefix": "for",
|
||||
"body": [
|
||||
"for ($${1:i}=${2:0}; $${1:i} < $3; $${1:i}++) { ",
|
||||
"\t${0:# code...}",
|
||||
"}"
|
||||
],
|
||||
"description": "For-loop"
|
||||
},
|
||||
"foreach …": {
|
||||
"prefix": "foreach",
|
||||
"body": [
|
||||
"foreach ($${1:variable} as $${2:key} ${3:=> $${4:value}}) {",
|
||||
"\t${0:# code...}",
|
||||
"}"
|
||||
],
|
||||
"description": "Foreach loop"
|
||||
},
|
||||
"$… = array (…)": {
|
||||
"prefix": "array",
|
||||
"body": "$${1:arrayName} = array('$2' => $3${4:,} $0);",
|
||||
"description": "Array initializer"
|
||||
},
|
||||
"$… = […]": {
|
||||
"prefix": "shorray",
|
||||
"body": "$${1:arrayName} = ['$2' => $3${4:,} $0];",
|
||||
"description": "Array initializer"
|
||||
},
|
||||
"… => …": {
|
||||
"prefix": "keyval",
|
||||
"body": "'$1' => $2${3:,} $0",
|
||||
"description": "Key-Value initializer"
|
||||
},
|
||||
"switch …": {
|
||||
"prefix": "switch",
|
||||
"body": [
|
||||
"switch (\\$${1:variable}) {",
|
||||
"\tcase '${2:value}':",
|
||||
"\t\t${3:# code...}",
|
||||
"\t\tbreak;",
|
||||
"\t$0",
|
||||
"\tdefault:",
|
||||
"\t\t${4:# code...}",
|
||||
"\t\tbreak;",
|
||||
"}"
|
||||
],
|
||||
"description": "Switch block"
|
||||
},
|
||||
"case …": {
|
||||
"prefix": "case",
|
||||
"body": [
|
||||
"case '${1:value}':",
|
||||
"\t${0:# code...}",
|
||||
"\tbreak;"
|
||||
],
|
||||
"description": "Case Block"
|
||||
},
|
||||
"$this->…": {
|
||||
"prefix": "this",
|
||||
"body": "\\$this->$0;",
|
||||
"description": "$this->..."
|
||||
},
|
||||
"echo $this->…": {
|
||||
"prefix": "ethis",
|
||||
"body": "echo \\$this->$0;",
|
||||
"description": "Echo this"
|
||||
},
|
||||
"Throw Exception": {
|
||||
"prefix": "throw",
|
||||
"body": [
|
||||
"throw new $1Exception(${2:\"${3:Error Processing Request}\"}${4:, ${5:1}});",
|
||||
"$0"
|
||||
],
|
||||
"description": "Throw exception"
|
||||
},
|
||||
"Region Start": {
|
||||
"prefix": "#region",
|
||||
"body": [
|
||||
"#region"
|
||||
],
|
||||
"description": "Folding Region Start"
|
||||
},
|
||||
"Region End": {
|
||||
"prefix": "#endregion",
|
||||
"body": [
|
||||
"#endregion"
|
||||
],
|
||||
"description": "Folding Region End"
|
||||
},
|
||||
"Try Catch Block": {
|
||||
"prefix": "try",
|
||||
"body": [
|
||||
"try {",
|
||||
"\t${1://code...}",
|
||||
"} catch (${2:\\Throwable} ${3:\\$th}) {",
|
||||
"\t${4://throw \\$th;}",
|
||||
"}"
|
||||
],
|
||||
"description": "Try catch block"
|
||||
}
|
||||
}
|
189
lib/vscode/extensions/php/syntaxes/html.tmLanguage.json
Normal file
189
lib/vscode/extensions/php/syntaxes/html.tmLanguage.json
Normal file
@ -0,0 +1,189 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/atom/language-php/blob/master/grammars/html.cson",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/atom/language-php/commit/b6c5e83016b52311cdc622c2579462861ee91587",
|
||||
"name": "PHP",
|
||||
"scopeName": "text.html.php",
|
||||
"injections": {
|
||||
"L:source.php string.quoted.single.sql.php source.sql.embedded.php": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(#)(\\\\'|[^'])*(?='|$)",
|
||||
"name": "comment.line.number-sign.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(--)(\\\\'|[^'])*(?='|$)",
|
||||
"name": "comment.line.double-dash.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\\\[\\\\'`\"]",
|
||||
"name": "constant.character.escape.php"
|
||||
},
|
||||
{
|
||||
"match": "\"(?=((\\\\\")|[^\"'])*('|$))",
|
||||
"name": "string.quoted.double.unclosed.sql"
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:source.php string.quoted.double.sql.php source.sql.embedded.php": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(#)(\\\\\"|[^\"])*(?=\"|$)",
|
||||
"name": "comment.line.number-sign.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(--)(\\\\\"|[^\"])*(?=\"|$)",
|
||||
"name": "comment.line.double-dash.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\\\[\\\\'`\"]",
|
||||
"name": "constant.character.escape.php"
|
||||
},
|
||||
{
|
||||
"match": "(')([^'\\\\]*)(')",
|
||||
"name": "string.quoted.single.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.sql"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.php#interpolation_double_quoted"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.string.end.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(`)([^`\\\\]*)(`)",
|
||||
"name": "string.quoted.other.backtick.sql",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.sql"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.php#interpolation_double_quoted"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.string.end.sql"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "'(?=((\\\\')|[^'\"])*(\"|$))",
|
||||
"name": "string.quoted.single.unclosed.sql"
|
||||
},
|
||||
{
|
||||
"include": "source.php#interpolation_double_quoted"
|
||||
}
|
||||
]
|
||||
},
|
||||
"text.html.php - (meta.embedded | meta.tag), L:((text.html.php meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.css - (meta.embedded.block.php | meta.embedded.line.php))": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#php-tag"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\A#!",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.php"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"name": "comment.line.shebang.php"
|
||||
},
|
||||
{
|
||||
"include": "text.html.derivative"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"php-tag": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "<\\?(?i:php|=)?(?![^?]*\\?>)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.begin.php"
|
||||
}
|
||||
},
|
||||
"end": "(\\?)>",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.end.php"
|
||||
},
|
||||
"1": {
|
||||
"name": "source.php"
|
||||
}
|
||||
},
|
||||
"name": "meta.embedded.block.php",
|
||||
"contentName": "source.php",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.php"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "<\\?(?i:php|=)?",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.begin.php"
|
||||
}
|
||||
},
|
||||
"end": "(\\?)>",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.end.php"
|
||||
},
|
||||
"1": {
|
||||
"name": "source.php"
|
||||
}
|
||||
},
|
||||
"name": "meta.embedded.line.php",
|
||||
"contentName": "source.php",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.php"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
3495
lib/vscode/extensions/php/syntaxes/php.tmLanguage.json
Normal file
3495
lib/vscode/extensions/php/syntaxes/php.tmLanguage.json
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
...
|
||||
<?php
|
||||
foreach($actID AS $act) {
|
||||
echo 'divNames.push(\'[nid='.$act.']\');';
|
||||
}
|
||||
?>
|
||||
...
|
||||
</script>
|
@ -0,0 +1 @@
|
||||
<hello></hello>
|
48
lib/vscode/extensions/php/test/colorize-fixtures/test.php
Normal file
48
lib/vscode/extensions/php/test/colorize-fixtures/test.php
Normal file
@ -0,0 +1,48 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Example page</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php
|
||||
function functionName(){
|
||||
|
||||
// Code to be executed
|
||||
}
|
||||
/* Example PHP file
|
||||
multiline comment
|
||||
*/
|
||||
|
||||
$cards = array("ah", "ac", "ad", "as",
|
||||
"2h", "2c", "2d", "2s");
|
||||
|
||||
srand(time());
|
||||
|
||||
for($i = 0; $i < 52; $i++) {
|
||||
$count = count($cards);
|
||||
$random = (rand()%$count);
|
||||
|
||||
if($cards[$random] == "") {
|
||||
$i--;
|
||||
} else {
|
||||
$deck[] = $cards[$random];
|
||||
$cards[$random] = "";
|
||||
}
|
||||
}
|
||||
srand(time());
|
||||
$starting_point = (rand()%51);
|
||||
print("Starting point for cut cards is: $starting_point<p>");
|
||||
|
||||
// display shuffled cards (EXAMPLE ONLY)
|
||||
for ($index = 0; $index < 52; $index++) {
|
||||
if ($starting_point == 52) { $starting_point = 0; }
|
||||
print("Uncut Point: <strong>$deck[$index]</strong> ");
|
||||
$starting_point++;
|
||||
}
|
||||
|
||||
function foo bar(){}
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,541 @@
|
||||
[
|
||||
{
|
||||
"c": "<",
|
||||
"t": "text.html.php meta.embedded.block.html meta.tag.metadata.script.start.html punctuation.definition.tag.begin.html",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.definition.tag: #808080",
|
||||
"light_plus": "punctuation.definition.tag: #800000",
|
||||
"dark_vs": "punctuation.definition.tag: #808080",
|
||||
"light_vs": "punctuation.definition.tag: #800000",
|
||||
"hc_black": "punctuation.definition.tag: #808080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "script",
|
||||
"t": "text.html.php meta.embedded.block.html meta.tag.metadata.script.start.html entity.name.tag.html",
|
||||
"r": {
|
||||
"dark_plus": "entity.name.tag: #569CD6",
|
||||
"light_plus": "entity.name.tag: #800000",
|
||||
"dark_vs": "entity.name.tag: #569CD6",
|
||||
"light_vs": "entity.name.tag: #800000",
|
||||
"hc_black": "entity.name.tag: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ">",
|
||||
"t": "text.html.php meta.embedded.block.html meta.tag.metadata.script.start.html punctuation.definition.tag.end.html",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.definition.tag: #808080",
|
||||
"light_plus": "punctuation.definition.tag: #800000",
|
||||
"dark_vs": "punctuation.definition.tag: #808080",
|
||||
"light_vs": "punctuation.definition.tag: #800000",
|
||||
"hc_black": "punctuation.definition.tag: #808080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "text.html.php meta.embedded.block.html source.js",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "...",
|
||||
"t": "text.html.php meta.embedded.block.html source.js keyword.operator.spread.js",
|
||||
"r": {
|
||||
"dark_plus": "keyword.operator: #D4D4D4",
|
||||
"light_plus": "keyword.operator: #000000",
|
||||
"dark_vs": "keyword.operator: #D4D4D4",
|
||||
"light_vs": "keyword.operator: #000000",
|
||||
"hc_black": "keyword.operator: #D4D4D4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "text.html.php meta.embedded.block.html source.js",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "<?php",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php punctuation.section.embedded.begin.php",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.section.embedded.begin.php: #569CD6",
|
||||
"light_plus": "punctuation.section.embedded.begin.php: #800000",
|
||||
"dark_vs": "punctuation.section.embedded.begin.php: #569CD6",
|
||||
"light_vs": "punctuation.section.embedded.begin.php: #800000",
|
||||
"hc_black": "punctuation.section.embedded: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "foreach",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php keyword.control.foreach.php",
|
||||
"r": {
|
||||
"dark_plus": "keyword.control: #C586C0",
|
||||
"light_plus": "keyword.control: #AF00DB",
|
||||
"dark_vs": "keyword.control: #569CD6",
|
||||
"light_vs": "keyword.control: #0000FF",
|
||||
"hc_black": "keyword.control: #C586C0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "(",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php punctuation.definition.begin.bracket.round.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "$",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php variable.other.php punctuation.definition.variable.php",
|
||||
"r": {
|
||||
"dark_plus": "variable: #9CDCFE",
|
||||
"light_plus": "variable: #001080",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "variable: #9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "actID",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php variable.other.php",
|
||||
"r": {
|
||||
"dark_plus": "variable: #9CDCFE",
|
||||
"light_plus": "variable: #001080",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "variable: #9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "AS",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php keyword.operator.logical.php",
|
||||
"r": {
|
||||
"dark_plus": "keyword.operator: #D4D4D4",
|
||||
"light_plus": "keyword.operator: #000000",
|
||||
"dark_vs": "keyword.operator: #D4D4D4",
|
||||
"light_vs": "keyword.operator: #000000",
|
||||
"hc_black": "keyword.operator: #D4D4D4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "$",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php variable.other.php punctuation.definition.variable.php",
|
||||
"r": {
|
||||
"dark_plus": "variable: #9CDCFE",
|
||||
"light_plus": "variable: #001080",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "variable: #9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "act",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php variable.other.php",
|
||||
"r": {
|
||||
"dark_plus": "variable: #9CDCFE",
|
||||
"light_plus": "variable: #001080",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "variable: #9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ")",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php punctuation.definition.end.bracket.round.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "{",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php punctuation.definition.begin.bracket.curly.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "echo",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php support.function.construct.output.php",
|
||||
"r": {
|
||||
"dark_plus": "support.function: #DCDCAA",
|
||||
"light_plus": "support.function: #795E26",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "support.function: #DCDCAA"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "'",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php string.quoted.single.php punctuation.definition.string.begin.php",
|
||||
"r": {
|
||||
"dark_plus": "string: #CE9178",
|
||||
"light_plus": "string: #A31515",
|
||||
"dark_vs": "string: #CE9178",
|
||||
"light_vs": "string: #A31515",
|
||||
"hc_black": "string: #CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "divNames.push(",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php string.quoted.single.php",
|
||||
"r": {
|
||||
"dark_plus": "string: #CE9178",
|
||||
"light_plus": "string: #A31515",
|
||||
"dark_vs": "string: #CE9178",
|
||||
"light_vs": "string: #A31515",
|
||||
"hc_black": "string: #CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "\\'",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php string.quoted.single.php constant.character.escape.php",
|
||||
"r": {
|
||||
"dark_plus": "constant.character.escape: #D7BA7D",
|
||||
"light_plus": "constant.character.escape: #EE0000",
|
||||
"dark_vs": "string: #CE9178",
|
||||
"light_vs": "string: #A31515",
|
||||
"hc_black": "constant.character: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "[nid=",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php string.quoted.single.php",
|
||||
"r": {
|
||||
"dark_plus": "string: #CE9178",
|
||||
"light_plus": "string: #A31515",
|
||||
"dark_vs": "string: #CE9178",
|
||||
"light_vs": "string: #A31515",
|
||||
"hc_black": "string: #CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "'",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php string.quoted.single.php punctuation.definition.string.end.php",
|
||||
"r": {
|
||||
"dark_plus": "string: #CE9178",
|
||||
"light_plus": "string: #A31515",
|
||||
"dark_vs": "string: #CE9178",
|
||||
"light_vs": "string: #A31515",
|
||||
"hc_black": "string: #CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ".",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php keyword.operator.string.php",
|
||||
"r": {
|
||||
"dark_plus": "keyword.operator: #D4D4D4",
|
||||
"light_plus": "keyword.operator: #000000",
|
||||
"dark_vs": "keyword.operator: #D4D4D4",
|
||||
"light_vs": "keyword.operator: #000000",
|
||||
"hc_black": "keyword.operator: #D4D4D4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "$",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php variable.other.php punctuation.definition.variable.php",
|
||||
"r": {
|
||||
"dark_plus": "variable: #9CDCFE",
|
||||
"light_plus": "variable: #001080",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "variable: #9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "act",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php variable.other.php",
|
||||
"r": {
|
||||
"dark_plus": "variable: #9CDCFE",
|
||||
"light_plus": "variable: #001080",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "variable: #9CDCFE"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ".",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php keyword.operator.string.php",
|
||||
"r": {
|
||||
"dark_plus": "keyword.operator: #D4D4D4",
|
||||
"light_plus": "keyword.operator: #000000",
|
||||
"dark_vs": "keyword.operator: #D4D4D4",
|
||||
"light_vs": "keyword.operator: #000000",
|
||||
"hc_black": "keyword.operator: #D4D4D4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "'",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php string.quoted.single.php punctuation.definition.string.begin.php",
|
||||
"r": {
|
||||
"dark_plus": "string: #CE9178",
|
||||
"light_plus": "string: #A31515",
|
||||
"dark_vs": "string: #CE9178",
|
||||
"light_vs": "string: #A31515",
|
||||
"hc_black": "string: #CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "]",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php string.quoted.single.php",
|
||||
"r": {
|
||||
"dark_plus": "string: #CE9178",
|
||||
"light_plus": "string: #A31515",
|
||||
"dark_vs": "string: #CE9178",
|
||||
"light_vs": "string: #A31515",
|
||||
"hc_black": "string: #CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "\\'",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php string.quoted.single.php constant.character.escape.php",
|
||||
"r": {
|
||||
"dark_plus": "constant.character.escape: #D7BA7D",
|
||||
"light_plus": "constant.character.escape: #EE0000",
|
||||
"dark_vs": "string: #CE9178",
|
||||
"light_vs": "string: #A31515",
|
||||
"hc_black": "constant.character: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ");",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php string.quoted.single.php",
|
||||
"r": {
|
||||
"dark_plus": "string: #CE9178",
|
||||
"light_plus": "string: #A31515",
|
||||
"dark_vs": "string: #CE9178",
|
||||
"light_vs": "string: #A31515",
|
||||
"hc_black": "string: #CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "'",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php string.quoted.single.php punctuation.definition.string.end.php",
|
||||
"r": {
|
||||
"dark_plus": "string: #CE9178",
|
||||
"light_plus": "string: #A31515",
|
||||
"dark_vs": "string: #CE9178",
|
||||
"light_vs": "string: #A31515",
|
||||
"hc_black": "string: #CE9178"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ";",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php punctuation.terminator.expression.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "}",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php punctuation.definition.end.bracket.curly.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php source.php",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "?",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php punctuation.section.embedded.end.php source.php",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.section.embedded.end.php: #569CD6",
|
||||
"light_plus": "punctuation.section.embedded.end.php: #800000",
|
||||
"dark_vs": "punctuation.section.embedded.end.php: #569CD6",
|
||||
"light_vs": "punctuation.section.embedded.end.php: #800000",
|
||||
"hc_black": "punctuation.section.embedded: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ">",
|
||||
"t": "text.html.php meta.embedded.block.html source.js meta.embedded.block.php punctuation.section.embedded.end.php",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.section.embedded.end.php: #569CD6",
|
||||
"light_plus": "punctuation.section.embedded.end.php: #800000",
|
||||
"dark_vs": "punctuation.section.embedded.end.php: #569CD6",
|
||||
"light_vs": "punctuation.section.embedded.end.php: #800000",
|
||||
"hc_black": "punctuation.section.embedded: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": " ",
|
||||
"t": "text.html.php meta.embedded.block.html source.js",
|
||||
"r": {
|
||||
"dark_plus": "meta.embedded: #D4D4D4",
|
||||
"light_plus": "meta.embedded: #000000",
|
||||
"dark_vs": "meta.embedded: #D4D4D4",
|
||||
"light_vs": "meta.embedded: #000000",
|
||||
"hc_black": "meta.embedded: #FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "...",
|
||||
"t": "text.html.php meta.embedded.block.html source.js keyword.operator.spread.js",
|
||||
"r": {
|
||||
"dark_plus": "keyword.operator: #D4D4D4",
|
||||
"light_plus": "keyword.operator: #000000",
|
||||
"dark_vs": "keyword.operator: #D4D4D4",
|
||||
"light_vs": "keyword.operator: #000000",
|
||||
"hc_black": "keyword.operator: #D4D4D4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "<",
|
||||
"t": "text.html.php meta.embedded.block.html meta.tag.metadata.script.end.html punctuation.definition.tag.begin.html source.js-ignored-vscode",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.definition.tag: #808080",
|
||||
"light_plus": "punctuation.definition.tag: #800000",
|
||||
"dark_vs": "punctuation.definition.tag: #808080",
|
||||
"light_vs": "punctuation.definition.tag: #800000",
|
||||
"hc_black": "punctuation.definition.tag: #808080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "/",
|
||||
"t": "text.html.php meta.embedded.block.html meta.tag.metadata.script.end.html punctuation.definition.tag.begin.html",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.definition.tag: #808080",
|
||||
"light_plus": "punctuation.definition.tag: #800000",
|
||||
"dark_vs": "punctuation.definition.tag: #808080",
|
||||
"light_vs": "punctuation.definition.tag: #800000",
|
||||
"hc_black": "punctuation.definition.tag: #808080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "script",
|
||||
"t": "text.html.php meta.embedded.block.html meta.tag.metadata.script.end.html entity.name.tag.html",
|
||||
"r": {
|
||||
"dark_plus": "entity.name.tag: #569CD6",
|
||||
"light_plus": "entity.name.tag: #800000",
|
||||
"dark_vs": "entity.name.tag: #569CD6",
|
||||
"light_vs": "entity.name.tag: #800000",
|
||||
"hc_black": "entity.name.tag: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ">",
|
||||
"t": "text.html.php meta.embedded.block.html meta.tag.metadata.script.end.html punctuation.definition.tag.end.html",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.definition.tag: #808080",
|
||||
"light_plus": "punctuation.definition.tag: #800000",
|
||||
"dark_vs": "punctuation.definition.tag: #808080",
|
||||
"light_vs": "punctuation.definition.tag: #800000",
|
||||
"hc_black": "punctuation.definition.tag: #808080"
|
||||
}
|
||||
}
|
||||
]
|
@ -0,0 +1,68 @@
|
||||
[
|
||||
{
|
||||
"c": "<",
|
||||
"t": "text.html.php meta.tag.other.unrecognized.html.derivative punctuation.definition.tag.begin.html",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.definition.tag: #808080",
|
||||
"light_plus": "punctuation.definition.tag: #800000",
|
||||
"dark_vs": "punctuation.definition.tag: #808080",
|
||||
"light_vs": "punctuation.definition.tag: #800000",
|
||||
"hc_black": "punctuation.definition.tag: #808080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "hello",
|
||||
"t": "text.html.php meta.tag.other.unrecognized.html.derivative entity.name.tag.html",
|
||||
"r": {
|
||||
"dark_plus": "entity.name.tag: #569CD6",
|
||||
"light_plus": "entity.name.tag: #800000",
|
||||
"dark_vs": "entity.name.tag: #569CD6",
|
||||
"light_vs": "entity.name.tag: #800000",
|
||||
"hc_black": "entity.name.tag: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ">",
|
||||
"t": "text.html.php meta.tag.other.unrecognized.html.derivative punctuation.definition.tag.end.html",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.definition.tag: #808080",
|
||||
"light_plus": "punctuation.definition.tag: #800000",
|
||||
"dark_vs": "punctuation.definition.tag: #808080",
|
||||
"light_vs": "punctuation.definition.tag: #800000",
|
||||
"hc_black": "punctuation.definition.tag: #808080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "</",
|
||||
"t": "text.html.php meta.tag.other.unrecognized.html.derivative punctuation.definition.tag.begin.html",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.definition.tag: #808080",
|
||||
"light_plus": "punctuation.definition.tag: #800000",
|
||||
"dark_vs": "punctuation.definition.tag: #808080",
|
||||
"light_vs": "punctuation.definition.tag: #800000",
|
||||
"hc_black": "punctuation.definition.tag: #808080"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": "hello",
|
||||
"t": "text.html.php meta.tag.other.unrecognized.html.derivative entity.name.tag.html",
|
||||
"r": {
|
||||
"dark_plus": "entity.name.tag: #569CD6",
|
||||
"light_plus": "entity.name.tag: #800000",
|
||||
"dark_vs": "entity.name.tag: #569CD6",
|
||||
"light_vs": "entity.name.tag: #800000",
|
||||
"hc_black": "entity.name.tag: #569CD6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"c": ">",
|
||||
"t": "text.html.php meta.tag.other.unrecognized.html.derivative punctuation.definition.tag.end.html",
|
||||
"r": {
|
||||
"dark_plus": "punctuation.definition.tag: #808080",
|
||||
"light_plus": "punctuation.definition.tag: #800000",
|
||||
"dark_vs": "punctuation.definition.tag: #808080",
|
||||
"light_vs": "punctuation.definition.tag: #800000",
|
||||
"hc_black": "punctuation.definition.tag: #808080"
|
||||
}
|
||||
}
|
||||
]
|
3632
lib/vscode/extensions/php/test/colorize-results/test_php.json
Normal file
3632
lib/vscode/extensions/php/test/colorize-results/test_php.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user