-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PHP] Adjust snippet selectors (#3631)
This commit adds `text.html.php` to those snippets which are currently triggered by `embedding.php - source.php` only. The goal is to enable those snippets in inherit syntax such as Laravel Blade, which don't use `embedding.php` but will probably be scoped `text.html.php.blade`. Note: Basically `embedding.php` is maintained only in order to enable those snippets in an empty document, as `text.html.php` is added to stack not before the first character is typed.
- Loading branch information
Showing
10 changed files
with
10 additions
and
10 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_PHP_OPEN_TAG:php} $0 ?>]]></content> | ||
<tabTrigger>php</tabTrigger> | ||
<scope>embedding.php text.html punctuation.section.embedded.begin.php</scope> | ||
<scope>(embedding.php | text.html.php) & punctuation.section.embedded.begin.php</scope> | ||
<description><?php … ?></description> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[<?${TM_PHP_OPEN_TAG:php} \$this->$0 ?>]]></content> | ||
<tabTrigger>this</tabTrigger> | ||
<scope>embedding.php text.html - source.php</scope> | ||
<scope>(embedding.php | text.html.php) - source.php</scope> | ||
<description><?php $this->… ?></description> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[<?${TM_PHP_OPEN_TAG_WITH_ECHO:php echo} \$this->$0 ?>]]></content> | ||
<tabTrigger>ethis</tabTrigger> | ||
<scope>embedding.php text.html - source.php</scope> | ||
<scope>(embedding.php | text.html.php) - source.php</scope> | ||
<description><?php echo $this->… ?></description> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[<?${TM_PHP_OPEN_TAG_WITH_ECHO:php echo} ${1:\$var} ?>$0]]></content> | ||
<tabTrigger>echo</tabTrigger> | ||
<scope>embedding.php text.html - source.php</scope> | ||
<scope>(embedding.php | text.html.php) - source.php</scope> | ||
<description><?php echo … ?></description> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[<?${TM_PHP_OPEN_TAG_WITH_ECHO:php echo} htmlentities(${1:\$var}, ENT_QUOTES, 'utf-8') ?>$0]]></content> | ||
<tabTrigger>echoh</tabTrigger> | ||
<scope>embedding.php text.html - source.php</scope> | ||
<scope>(embedding.php | text.html.php) - source.php</scope> | ||
<description><?php echo htmlentities(…) ?></description> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[<?${TM_PHP_OPEN_TAG:php} else: ?>]]></content> | ||
<tabTrigger>else</tabTrigger> | ||
<scope>embedding.php text.html - source.php</scope> | ||
<scope>(embedding.php | text.html.php) - source.php</scope> | ||
<description><?php else: ?></description> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[<?${TM_PHP_OPEN_TAG:php} $0 ?>]]></content> | ||
<tabTrigger>php</tabTrigger> | ||
<scope>embedding.php text.html - source.php - punctuation.section.embedded.begin.php</scope> | ||
<scope>(embedding.php | text.html.php) - source.php - punctuation.section.embedded.begin.php</scope> | ||
<description><?php … ?></description> | ||
</snippet> |