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.
Please try following in PHP file: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <script type='text/template' id ='template'> <div> <%- a %> </div> </script> </body> </html> The content of <script> is underlined red with "Expected operand but found <" messages (all 3 lines). This works in HTML file (meaning no errors are displayed) Product Version: NetBeans IDE 7.3 RC2 (Build 201302032200) Java: 1.7.0_13; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20 System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Still the same...these errors are probably caused by new JS support.
*** Bug 225413 has been marked as a duplicate of this bug. ***
There is imo small bug in lexer where PropertyProvider is ignored for join token. Thus the script type property is null and the block is treated as JS.
Created attachment 131241 [details] lexer patch Lexer fix. Milo, can we apply that? All tests in lexer are passing.
Yes, please apply it. Thanks.
Fixed in web-main d5ada2d4c1e9.
*** Bug 225512 has been marked as a duplicate of this bug. ***
*** Bug 225538 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201302122300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d5ada2d4c1e9 User: Petr Hejl <phejl@netbeans.org> Log: #225738 - Template in script tag generates errors
Verified, thanks Product Version: NetBeans IDE Dev (Build 201302132300) Java: 1.7.0_15; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b01 System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
This problem still exists for me in netbeans 7.3!
Confirming, still exists for me in netbeans 7.3
Target milestone - the version where it is fixed is next and it is 73patch-candidate. Please do not reopen for 7.3 - TM is not 7.3.
*** Bug 226709 has been marked as a duplicate of this bug. ***
*** Bug 227024 has been marked as a duplicate of this bug. ***
Transplanted to release73 e667ce670950 c46c59e477ac
Integrated into 'releases', will be available in build *201303102200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/e667ce670950 User: Petr Hejl <phejl@netbeans.org> Log: #225738 - Template in script tag generates errors
No errors displayed, verified in patch1 Product Version: NetBeans IDE 7.3 (Build 201303141828) Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Linux version 3.2.0-38-generic-pae running on i386; UTF-8; en_US (nb)