Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
111 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<snippet> | ||
<!-- Example: Hello, ${1:this} is a ${2:snippet}. --> | ||
<content><![CDATA[ | ||
class ${1:${TM_FILENAME/(.+)\..+/$1/}} extends PHPUnit_Framework_TestCase { | ||
public function setUp(){} | ||
public function tearDown(){} | ||
$10 | ||
} | ||
]]></content> | ||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | ||
<tabTrigger>phpu</tabTrigger> | ||
<description>PHPUnit_Framework_TestCase</description> | ||
<!-- Optional: Set a scope to limit where the snippet will trigger --> | ||
<scope>text.html, source.php</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,142 +1,33 @@ | ||
{ | ||
// Rule definitions for finding and matching brackets. | ||
// Brackets are found by using regex and can use scope | ||
// qualifiers exclude certain matches. | ||
// Once all matches are found, the closest pair surrounding | ||
// the cursor are selected. | ||
// "brackets": [ | ||
// // Basic brackets | ||
// { | ||
// "name": "php_keywords", | ||
// "open": "(?:^\\s*|<\\?(?:php)?\\s*)?\\b(if|foreach|for|while|switch)\\b(?=.*:\\s*(?:\\?>\\s*)?$)", | ||
// "close": "(?:^\\s*|<\\?(?:php)?\\s*)?\\b(endif|endfor|endforeach|endwhile|endswitch)\\b(?=\\s*;\\s*(?:\\?>\\s*)?$)", | ||
// "style": "brackethighlighter.php_tags", | ||
// "language_filter": "whitelist", | ||
// "scope_exclude": ["string", "comment"], | ||
// "plugin_library": "bh_modules.phpkeywords", | ||
// "language_list": ["HTML", "HTML 5", "XML", "PHP", "HTML+CFML", "ColdFusion", "ColdFusionCFC"], | ||
// "enabled": true | ||
// }, | ||
// { | ||
// "name": "html", | ||
// "open": "(<)(?=[\\w\\:\\-]+(?:(?:\\s+[\\w\\-:]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^>\\s]+))?)*)\\s*\\/?>|\\/[\\w\\:\\-]+[^>]*>)", | ||
// "close": "(?<=<)(?:[\\w\\:\\-]+(?:(?:\\s+[\\w\\-:]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^>\\s]+))?)*)\\s*\\/?|\\/[\\w\\:\\-]+[^>]*)(>)", | ||
// "style": "tag", | ||
// "scope_exclude": ["string", "comment"], | ||
// "language_filter": "whitelist", | ||
// "language_list": ["HTML", "HTML 5", "XML", "PHP"], | ||
// "plugin_library": "bh_modules.tags", | ||
// "find_in_sub_search": "only", | ||
// "enabled": false | ||
// }, | ||
|
||
// { | ||
// "name": "tag", | ||
// "open": "(<)", | ||
// "close": "(>)", | ||
// "icon": "tag", | ||
// "color": "brackethighlighter.tag", | ||
// // "style": "outline", | ||
// "language_filter": "whitelist", | ||
// "scope_exclude": ["string", "comment", "keyword.operator"], | ||
// "language_list": ["HTML", "HTML 5", "XML", "PHP", "HTML+CFML", "ColdFusion", "ColdFusionCFC"], | ||
// "plugin_library": "bh_modules.tags", | ||
// "enabled": true | ||
// }, | ||
|
||
// { | ||
// "name": "curly", | ||
// "open": "(\\{)", | ||
// "close": "(\\})", | ||
// "style": "curly", | ||
// "scope_exclude": ["string", "comment"], | ||
// "scope_exclude_exceptions": ["string.other.math.block.environment.latex"], | ||
// "language_filter": "blacklist", | ||
// "language_list": ["Plain text"], | ||
// "find_in_sub_search": true, | ||
// "ignore_string_escape": true, | ||
// "enabled": true | ||
// }, | ||
// { | ||
// "name": "round", | ||
// "open": "(\\()", | ||
// "close": "(\\))", | ||
// "style": "round", | ||
// "scope_exclude_exceptions": ["string.other.math.block.environment.latex"], | ||
// "scope_exclude": ["string", "comment"], | ||
// "language_filter": "blacklist", | ||
// "language_list": ["Plain text"], | ||
// "find_in_sub_search": true, | ||
// "ignore_string_escape": true, | ||
// "enabled": true | ||
// }, | ||
// { | ||
// "name": "square", | ||
// "open": "(\\[)", | ||
// "close": "(\\])", | ||
// "style": "square", | ||
// "scope_exclude": ["string", "comment"], | ||
// "scope_exclude_exceptions": ["string.other.math.block.environment.latex"], | ||
// "language_filter": "blacklist", | ||
// "language_list": ["Plain text"], | ||
// "find_in_sub_search": true, | ||
// "ignore_string_escape": true, | ||
// "enabled": true | ||
// }, | ||
// // Angle brackets and tags | ||
// { | ||
// "name": "angle", | ||
// "open": "(<)", | ||
// "close": "(>)", | ||
// "style": "angle", | ||
// "scope_exclude": ["string", "comment", "keyword.operator"], | ||
// "language_filter": "whitelist", | ||
// "language_list": ["HTML", "HTML 5", "XML", "PHP", "HTML+CFML", "ColdFusion", "ColdFusionCFC"], | ||
// "plugin_library": "bh_modules.tags", | ||
// "enabled": true | ||
// }, | ||
// // CSSedit groups | ||
// { | ||
// "name": "cssedit_groups", | ||
// "open": "(/\\* *@group .*\\*/)", | ||
// "close": "(/\\* *@end *\\*/)", | ||
// "style": "default", | ||
// "scope_exclude": [], | ||
// "language_filter": "whitelist", | ||
// "language_list": ["CSS"], | ||
// "enabled": true | ||
// } | ||
// ], | ||
|
||
// Define region highlight styles | ||
"bracket_styles": { | ||
|
||
"default": { | ||
"icon": "dot", | ||
"color": "brackethighlighter.default", | ||
"style": "solid" | ||
}, | ||
|
||
|
||
"unmatched": { | ||
"icon": "question", | ||
"color": "brackethighlighter.invalid", | ||
"style": "solid" | ||
}, | ||
|
||
"tag": { | ||
"icon": "tag", | ||
"color": "brackethighlighter.tag", | ||
"style": "solid" | ||
}, | ||
|
||
"single_quote": { | ||
"icon": "single_quote" | ||
// "color": "brackethighlighter.quote", | ||
,"style": "underline" | ||
"icon": "single_quote", | ||
"color": "brackethighlighter.quotes", | ||
"style": "solid" | ||
}, | ||
|
||
"double_quote": { | ||
"icon": "double_quote" | ||
// "color": "brackethighlighter.quote", | ||
,"style": "underline" | ||
"icon": "double_quote", | ||
"color": "brackethighlighter.quotes", | ||
"style": "solid" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<snippet> | ||
<!-- Example: Hello, ${1:this} is a ${2:snippet}. --> | ||
<content><![CDATA[ | ||
class ${1:ClassName}_Test extends \WP_UnitTestCase {${10: | ||
public function setUp(){ | ||
parent::setUp(); | ||
$12 | ||
\} | ||
}${20: | ||
public function tearDown(){ | ||
parent::tearDown(); | ||
$22 | ||
\} | ||
} | ||
public function test_true_is_true(){ | ||
\$this->assertFalse( true, 'failing test' ); | ||
} | ||
} | ||
]]></content> | ||
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | ||
<tabTrigger>wptest</tabTrigger> | ||
<description>WordPress Test Case</description> | ||
<!-- Optional: Set a scope to limit where the snippet will trigger --> | ||
<scope>text.html, source.php</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters