Skip to content

Commit 79ef7ab

Browse files
committed
Add CSS to the types of 'magic' heredocs supported.
git-svn-id: http://svn.textmate.org/trunk/Bundles/PHP.tmbundle@11713 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
1 parent eb0c40c commit 79ef7ab

File tree

1 file changed

+59
-2
lines changed

1 file changed

+59
-2
lines changed

Syntaxes/PHP.plist

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,9 @@
460460
<array>
461461
<dict>
462462
<key>begin</key>
463-
<string>(?=&lt;&lt;&lt;\s*(HTML|XML|SQL|JAVASCRIPT)\s*$)</string>
463+
<string>(?=&lt;&lt;&lt;\s*(HTML|XML|SQL|JAVASCRIPT|CSS)\s*$)</string>
464464
<key>end</key>
465-
<string>(?!&lt;?&lt;&lt;\s*(HTML|XML|SQL|JAVASCRIPT)\s*$)</string>
465+
<string>(?!&lt;?&lt;&lt;\s*(HTML|XML|SQL|JAVASCRIPT|CSS)\s*$)</string>
466466
<key>name</key>
467467
<string>string.unquoted.heredoc.php</string>
468468
<key>patterns</key>
@@ -695,6 +695,63 @@
695695
</dict>
696696
</array>
697697
</dict>
698+
<dict>
699+
<key>begin</key>
700+
<string>(&lt;&lt;&lt;)\s*(CSS)\s*$\n?</string>
701+
<key>beginCaptures</key>
702+
<dict>
703+
<key>0</key>
704+
<dict>
705+
<key>name</key>
706+
<string>punctuation.section.embedded.begin.php</string>
707+
</dict>
708+
<key>1</key>
709+
<dict>
710+
<key>name</key>
711+
<string>punctuation.definition.string.php</string>
712+
</dict>
713+
<key>2</key>
714+
<dict>
715+
<key>name</key>
716+
<string>keyword.operator.heredoc.php</string>
717+
</dict>
718+
</dict>
719+
<key>contentName</key>
720+
<string>source.css</string>
721+
<key>end</key>
722+
<string>^(CSS)(;?)$\n?</string>
723+
<key>endCaptures</key>
724+
<dict>
725+
<key>0</key>
726+
<dict>
727+
<key>name</key>
728+
<string>punctuation.section.embedded.end.php</string>
729+
</dict>
730+
<key>1</key>
731+
<dict>
732+
<key>name</key>
733+
<string>keyword.operator.heredoc.php</string>
734+
</dict>
735+
<key>2</key>
736+
<dict>
737+
<key>name</key>
738+
<string>punctuation.definition.string.php</string>
739+
</dict>
740+
</dict>
741+
<key>name</key>
742+
<string>meta.embedded.css</string>
743+
<key>patterns</key>
744+
<array>
745+
<dict>
746+
<key>include</key>
747+
<string>source.css</string>
748+
</dict>
749+
<dict>
750+
<key>include</key>
751+
<string>#interpolation</string>
752+
</dict>
753+
</array>
754+
</dict>
698755
</array>
699756
</dict>
700757
<dict>

0 commit comments

Comments
 (0)