[SVN] [PATCH] Ruby Grammar: Distinguish augmented assignment operator from indented here-doc

Martin Kühl martin.kuehl at gmail.com
Wed Jan 21 16:49:13 UTC 2009


the Ruby grammar states that the `<<` operator and `<<-`-style
here-docs could always be distinguished. To augment (ha!) its
behaviour in this respect, I added a negative lookahead after the
pattern matching the `<<` operator so it could never match a `<<-`

Patch is attached or available from pastie:


"when you don't create things, you become defined by your tastes
rather than ability. your tastes only narrow & exclude people. so
create." — _why
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ruby-assignment-lookahead.patch
Type: application/octet-stream
Size: 481 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate-dev/attachments/20090121/d9f56aae/attachment.patch>

More information about the textmate-dev mailing list