init tool
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"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));))"},"folding":{"markers":{"start":"^\\s*(#|//)region\\b","end":"^\\s*(#|//)endregion\\b"}},"wordPattern":"(-?\\d*\\.\\d\\w*)|([^\\-\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)","onEnterRules":[{"beforeText":"^\\s*\\/\\*\\*(?!\\/)([^\\*]|\\*(?!\\/))*$","afterText":"^\\s*\\*\\/$","action":{"indent":"indentOutdent","appendText":" * "}},{"beforeText":"^\\s*\\/\\*\\*(?!\\/)([^\\*]|\\*(?!\\/))*$","action":{"indent":"none","appendText":" * "}},{"beforeText":"^(\\t|(\\ \\ ))*\\ \\*(\\ ([^\\*]|\\*(?!\\/))*)?$","action":{"indent":"none","appendText":"* "}},{"beforeText":"^(\\t|(\\ \\ ))*\\ \\*\\/\\s*$","action":{"indent":"none","removeText":1}},{"beforeText":"^(\\t|(\\ \\ ))*\\ \\*[^/]*\\*\\/\\s*$","action":{"indent":"none","removeText":1}}]}
|
||||
@@ -0,0 +1 @@
|
||||
{"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.mjs"},"repository":{"type":"git","url":"https://github.com/microsoft/vscode.git"}}
|
||||
@@ -0,0 +1 @@
|
||||
{"displayName":"PHP Language Basics","description":"Provides syntax highlighting and bracket matching for PHP files."}
|
||||
@@ -0,0 +1 @@
|
||||
{"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","isFileTemplate":true,"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","isFileTemplate":true,"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":"Parameter 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"}}
|
||||
@@ -0,0 +1 @@
|
||||
{"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/ff64523c94c014d68f5dec189b05557649c5872a","name":"PHP","scopeName":"text.html.php","injections":{"L:meta.embedded.php.blade":{"patterns":[{"include":"text.html.basic"},{"include":"text.html.php.blade#blade"}]},"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"}]}]}}}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user