Skip to content

Commit

Permalink
Fixes bug in includecss and includejs lookbehinds
Browse files Browse the repository at this point in the history
  • Loading branch information
BenParizek committed Jul 20, 2015
1 parent ddaeec3 commit 368936f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Syntaxes/Craft-Twig.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@
<dict>
<key>begin</key>
<string>(?ix) # Enable free spacing mode, case insensitive
(?&lt;=(\{\%\s\bincludecss\b\s\%\}|(\{\%\s\bincludehirescss\b\s\%\})))
(?&lt;=\{\%\sincludecss\s\%\}|\{\%\sincludehirescss\s\%\})
</string>
<key>comment</key>
<string>Add CSS support to set tags that use the pattern "css" in their name</string>
<key>end</key>
<string>(?ix)(?=\{\%\sendincludecss|endincludehirescss\s\%\})</string>
<string>(?ix)(?=\{\%\sendincludecss\s\%\}|\{\%\sendincludehirescss\s\%\})</string>
<key>name</key>
<string>source.css.embedded.twig</string>
<key>patterns</key>
Expand All @@ -246,7 +246,7 @@
<key>begin</key>
<string>(?ix) # Enable free spacing mode, case insensitive
# Make sure our opening includejs tag has word boundaries
(?&lt;=\{\%\s\bincludejs\b\s\%\})
(?&lt;=\{\%\sincludejs\s\%\})
</string>
<key>comment</key>
<string>Add JS support to set tags that use the pattern "css" in their name</string>
Expand Down

0 comments on commit 368936f

Please sign in to comment.