Closed dsawardekar closed 10 years ago
Thanks for the the report, this one was a good one :smile:
This bug was caused by a bad Regexp in the lexer for 'one line conditional' syntax, such as:
if bar doBar() end
This used to be valid Riml syntax, and I forgot to take it out of the lexer :blush:
The bad Regexp wasn't checking for a word boundary before 'end', so if opts.append
was being treated as one of these conditionals.
This is fixed and in master. Will be in new release tomorrow.
Thanks!
Interesting. Thanks for the prompt fix!
@luke-gru Does the word
append
have any special meaning withinRiml
? Here's an odd bug that reports a syntax error.This code doesn't compile, the error suggests too many
END
statements, which is incorrect.Switching to an array access operator like
opts['append']
works fine.