Discussion:
Syntax highlighting problem in ruby mode
(too old to reply)
William Clifford
2013-07-19 21:28:35 UTC
Permalink
I'm sorry if I should report this elsewhere.

If a backtick expression has '^$ or "^$ in that order, anywhere in the expression, the rest of the text is highlighted like a quote.

Example:

`foo "bar" | grep ^baz$`

If you put the expression in %x() it works fine

%x(foo "bar" | grep ^baz$)

I would like to help fix this, but I don't know my way around the font-locking system (yet). If anyone has any advice about it, please let me know.

Thanks!
William Clifford
2013-07-19 21:31:57 UTC
Permalink
Post by William Clifford
I'm sorry if I should report this elsewhere.
If a backtick expression has '^$ or "^$ in that order, anywhere in the expression, the rest of the text is highlighted like a quote.
`foo "bar" | grep ^baz$`
If you put the expression in %x() it works fine
%x(foo "bar" | grep ^baz$)
I would like to help fix this, but I don't know my way around the font-locking system (yet). If anyone has any advice about it, please let me know.
Thanks!
Update: it's actually just "$ or '$ that seems to cause the problem.
Continue reading on narkive:
Loading...