This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Single-quoted string literals should not be treated specially. Just \' and \\ are escaped. Try to put into the editor e.g.: puts 'Tom\'s computer is slow.' # correct usage, incorrect syntax highlighting puts '{x,y,q} \\ {x,y,z} = {q}' # correct u., correct h. puts '{x,y,q} \ {x,y,z} = {q}' # I think correct u., incorrect h. \<whatever_char> is struck out. Maybe it is some feature I do not understand to?
Thanks - fixed. It was handling \" instead of \'. Regarding highlighting of \<whatever_char>: The idea here is to give the user a clue that the characters are not being escaped. Ruby allows you to do \n. In a single-quoted string, this will emit two characters, not a single newline character. So it's trying to tell you there's no substitution happening here. I think that's probably going to be more helpful than annoying; from a quick look I haven't seen a lot of source code which is doing \x printing. (You could always use a double \\ to avoid the issue.)
I think the annoying could be the usage of regular expression group references where single quoted string are handy. Statements like: puts "three two one".gsub(/(\w+) (\w+) (\w+)/, '\3 \2 \1') looks little odd then and seems to be common when working with regexps.
Reassigning this issue to newly created 'ruby' component.
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.