Skip to content

Commit

Permalink
Added lua heredoc support
Browse files Browse the repository at this point in the history
  • Loading branch information
Overbryd committed May 6, 2013
1 parent 4a0da3b commit c371cf4
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions Syntaxes/Ruby.plist
Expand Up @@ -2097,6 +2097,53 @@
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)LUA)\b\1)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.ruby</string>
</dict>
</dict>
<key>comment</key>
<string>heredoc with embedded lua and intented terminator</string>
<key>contentName</key>
<string>text.lua.embedded.ruby</string>
<key>end</key>
<string>\s*\2$</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.ruby</string>
</dict>
</dict>
<key>name</key>
<string>string.unquoted.embedded.lua.ruby</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#heredoc</string>
</dict>
<dict>
<key>include</key>
<string>#interpolated_ruby</string>
</dict>
<dict>
<key>include</key>
<string>source.lua</string>
</dict>
<dict>
<key>include</key>
<string>#escaped_char</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?&gt;&lt;&lt;-("?)((?:[_\w]+_|)RUBY)\b\1)</string>
Expand Down

0 comments on commit c371cf4

Please sign in to comment.