Ruby - common pitfalls?

Fri, 27 Sep 2002 06:37:23 +0900, Rudolf Polzer AntiATField_adsgohere@durchnull.de pisze:

  • a %= b versus %=…=. A syntax highlighter gets into big trouble when
    seeing this construct. Nothing really seriuos, but I already had to
    insert “useless” comments to fix vim’s highlighting - which is unable
    to correctly highlight if-then-end expressions. Perhaps it would help
    to deprecate %=…= as string separator (any other character could be
    used with less problems).

No need to change Ruby here. The syntax highlighter could always
interpret it as the %= operator because it has no nice replacement.
You are not forced to use = as the string bracket, it’s easy to pick
another character.

···


__("< Marcin Kowalczyk
__/ qrczak@knm.org.pl
^^ Blog człowieka poczciwego.