Open
Description
%-string content- # good highlighting; equivalent to "string content"
15 % -4 - 6 == -7 # good highlighting
15"4 " 6==-7 # good highlighting (despite broken syntax)
15%-4 - 6==-7 # bad highlighting; highlighted in the same way as the above line
The highlighting appears incorrectly in GitHub the same way that it does in Sublime Text. A true fix is likely not feasible:
int = 15
def str(arg)
"string: #{arg}"
end
puts int %-4 #-
puts str %-4 #-
is interpreted the same as
int = 15
def str(arg)
"string: #{arg}"
end
puts int % -4
puts str("4 #")
so both output
-1
string: 4 #