Permalink
Browse files

use a negative look behind instead

  • Loading branch information...
1 parent 724d6cd commit 1922bf69a5e544b7a9e22e20500b4a50991ee262 @kjg kjg committed Apr 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 Contents/Resources/SyntaxDefinition.xml
@@ -35,7 +35,7 @@
</state>
<state id="Inline Ruby" color="#000" usesymbolsfrommode="Ruby" useautocompletefrommode="Ruby">
- <begin><regex>(?:[&amp;!]?[^=]=|-(?!#))(?=\s*)</regex></begin>
+ <begin><regex>(?:[&amp;!]?(?&lt;!=)=|-(?!#))(?=[\s\w])</regex></begin>
<end><regex>[\n\r]</regex></end>
<import mode="Ruby" />

0 comments on commit 1922bf6

Please sign in to comment.