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.

Bug 203193 - Javascript multiline string highlight issue
Summary: Javascript multiline string highlight issue
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 08:04 UTC by maxceem
Modified: 2012-09-09 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test js file to reproduce the issue (52 bytes, text/plain)
2011-10-06 08:11 UTC, maxceem
Details
Screenshot of the issue (45.41 KB, image/png)
2011-10-06 08:11 UTC, maxceem
Details
This is so annoying... please fix. (15.25 KB, image/png)
2012-03-19 21:46 UTC, leek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maxceem 2011-10-06 08:04:31 UTC
To reproduce this issue simply create a new js file with the following code (there are no spaces after last backslash):
var html = '\
    <div>\
      <div></div>\
    </div>\
';
actually the next code will show the issue also (there are no spaces after last backslash):
var html = '\
';
but editor highlights this as there are infinity quantity of spaces after the last backslash.
In the same time there are no line errors which will appear if I add one space after the last backslash (unterminated string literal, syntax error).

Product Version = NetBeans IDE 7.1 Beta (Build 201109252201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 21.0-b17
Comment 1 maxceem 2011-10-06 08:11:20 UTC
Created attachment 111578 [details]
Test js file to reproduce the issue
Comment 2 maxceem 2011-10-06 08:11:31 UTC
Created attachment 111579 [details]
Screenshot of the issue
Comment 3 Marian Mirilovic 2011-10-06 21:59:15 UTC
reporter, 
please if you say 'javascript' report issue against javascript support it will be evaluated by appropriate developer faster. Thanks in advance.
Comment 4 leek 2012-03-19 21:46:12 UTC
Created attachment 116891 [details]
This is so annoying... please fix.
Comment 5 Petr Hejl 2012-09-09 21:09:22 UTC
Seem to be fixed for 7.3. Feel free to reopen.