I’ve found a strange syntax highlight bug (sublime text 3.0 build 3143):
To reproduce write on a test.rb file:
@b = 1
a = 1
puts a/@b
do_another_thing # bad syntax highlight
do_a_second_thing # bad syntax highlight
I’ve found a strange syntax highlight bug (sublime text 3.0 build 3143):
To reproduce write on a test.rb file:
@b = 1
a = 1
puts a/@b
do_another_thing # bad syntax highlight
do_a_second_thing # bad syntax highlight
this is a known bug and should be fixed in the next build (assuming the PR to fix it gets merged first)
Just in case it’s helpful, I also noticed this regular expression is breaking the Ruby syntax highlighting too:
name.gsub(/{[^}]+}/) do |interpolation|
end
Everything after the second / has no syntax highlighting all the way to the end of the file in my case.
If you play around in the editor, the syntax highlighting has intermittent success when the regular expression involves parentheses, square brackets or curly brackets.
Thanks.