Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Fix squiggly heredoc syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
gshaw authored and rebornix committed Apr 17, 2017
1 parent 9c6ab8e commit 6d4dcc2
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions syntaxes/ruby.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?=(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)HTML)\b\1))</string>
<string>(?=(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)HTML)\b\1))</string>
<key>comment</key>
<string>Heredoc with embedded html</string>
<key>end</key>
Expand All @@ -2184,7 +2184,7 @@
<array>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)HTML)\b\1)</string>
<string>(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)HTML)\b\1)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand Down Expand Up @@ -2231,7 +2231,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?=(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)SQL)\b\1))</string>
<string>(?=(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)SQL)\b\1))</string>
<key>comment</key>
<string>Heredoc with embedded sql</string>
<key>end</key>
Expand All @@ -2242,7 +2242,7 @@
<array>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)SQL)\b\1)</string>
<string>(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)SQL)\b\1)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand Down Expand Up @@ -2289,7 +2289,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?=(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)CSS)\b\1))</string>
<string>(?=(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)CSS)\b\1))</string>
<key>comment</key>
<string>Heredoc with embedded css</string>
<key>end</key>
Expand All @@ -2300,7 +2300,7 @@
<array>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)CSS)\b\1)</string>
<string>(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)CSS)\b\1)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand Down Expand Up @@ -2347,7 +2347,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?=(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)CPP)\b\1))</string>
<string>(?=(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)CPP)\b\1))</string>
<key>comment</key>
<string>Heredoc with embedded c++</string>
<key>end</key>
Expand All @@ -2358,7 +2358,7 @@
<array>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)CPP)\b\1)</string>
<string>(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)CPP)\b\1)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand Down Expand Up @@ -2405,7 +2405,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?=(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)C)\b\1))</string>
<string>(?=(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)C)\b\1))</string>
<key>comment</key>
<string>Heredoc with embedded c</string>
<key>end</key>
Expand All @@ -2416,7 +2416,7 @@
<array>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)C)\b\1)</string>
<string>(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)C)\b\1)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand Down Expand Up @@ -2463,7 +2463,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?=(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)(?:JS|JAVASCRIPT))\b\1))</string>
<string>(?=(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)(?:JS|JAVASCRIPT))\b\1))</string>
<key>comment</key>
<string>Heredoc with embedded javascript</string>
<key>end</key>
Expand All @@ -2474,7 +2474,7 @@
<array>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)(?:JS|JAVASCRIPT))\b\1)</string>
<string>(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)(?:JS|JAVASCRIPT))\b\1)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand Down Expand Up @@ -2521,7 +2521,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?=(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)JQUERY)\b\1))</string>
<string>(?=(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)JQUERY)\b\1))</string>
<key>comment</key>
<string>Heredoc with embedded jQuery javascript</string>
<key>end</key>
Expand All @@ -2532,7 +2532,7 @@
<array>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)JQUERY)\b\1)</string>
<string>(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)JQUERY)\b\1)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand Down Expand Up @@ -2579,7 +2579,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?=(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)(?:SH|SHELL))\b\1))</string>
<string>(?=(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)(?:SH|SHELL))\b\1))</string>
<key>comment</key>
<string>Heredoc with embedded shell</string>
<key>end</key>
Expand All @@ -2590,7 +2590,7 @@
<array>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)(?:SH|SHELL))\b\1)</string>
<string>(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)(?:SH|SHELL))\b\1)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand Down Expand Up @@ -2637,7 +2637,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?=(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)LUA)\b\1))</string>
<string>(?=(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)LUA)\b\1))</string>
<key>comment</key>
<string>Heredoc with embedded lua</string>
<key>end</key>
Expand All @@ -2648,7 +2648,7 @@
<array>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)LUA)\b\1)</string>
<string>(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)LUA)\b\1)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand Down Expand Up @@ -2695,7 +2695,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?=(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)RUBY)\b\1))</string>
<string>(?=(?&gt;&lt;&lt;[-~]("?)((?:[_\w]+_|)RUBY)\b\1))</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand Down Expand Up @@ -2736,7 +2736,7 @@
</dict>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-(\w+))</string>
<string>(?&gt;&lt;&lt;[-~](\w+))</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
Expand Down Expand Up @@ -3018,7 +3018,7 @@
<key>heredoc</key>
<dict>
<key>begin</key>
<string>^&lt;&lt;-?\w+</string>
<string>^&lt;&lt;[-~]?\w+</string>
<key>end</key>
<string>$</string>
<key>patterns</key>
Expand Down

0 comments on commit 6d4dcc2

Please sign in to comment.