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.
Summary: | Red area is drawn in editor when string literal is not closed | ||
---|---|---|---|
Product: | ruby | Reporter: | Tomas Danek <musilt2> |
Component: | Code | Assignee: | Torbjorn Norbye <tor> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Tomas Danek
2006-12-18 14:04:40 UTC
Fixed (in build #200). The lexer now backs up the input to the original line where the string was initiated such that that line is returned as the full error token. Usually, unterminated input ends up showing everything with a red background. You usually can't tell, because the red background is hidden by the "current line" highlighting. If you move the caret off the unterminated string line, you can see it. In any case, before my fix, the lexer would scan to the end of input looking for the end of the string, and then abort. This meant the entire end of the input would be marked as erroneous. With my fix, only the current line shows up that way, and "normal" lexing resumes from the next line (as if the input had been terminated there.) Reassigning this issue to newly created 'ruby' component. Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build. |