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 166713

Summary: Statements right after heredocs highlighted as errors
Product: ruby Reporter: Erno Mononen <emononen>
Component: EditingAssignee: Erno Mononen <emononen>
Status: VERIFIED FIXED    
Severity: blocker CC: mschovanek, sustaining
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Erno Mononen 2009-06-08 12:06:34 UTC
The parser appears to have issues with the following:

hdoc = <<END
END
puts hdoc

The last line in the above gets incorrectly highlighted as an error (unexpexted tIDENTIFIER); adding a line break 
before it makes the error go away. Needs to be fixed in jruby-parser.
Comment 1 Erno Mononen 2009-06-11 13:15:35 UTC
I'm working on a fix for jruby-parser to fix this. Rather annoying when editing/viewing source that has a lot of 
heredocs. Will try to provide a fix in time for patch1.
Comment 2 Erno Mononen 2009-06-11 14:15:42 UTC
Fixed in jruby-parser and updated the lib in 280f35150229.
Comment 3 Erno Mononen 2009-06-11 15:52:54 UTC
Martine, can you please verify this? I'd like to get this fix to patch1.
Comment 4 Erno Mononen 2009-06-12 06:31:52 UTC
*** Issue 166956 has been marked as a duplicate of this issue. ***
Comment 5 Quality Engineering 2009-06-12 09:20:34 UTC
Integrated into 'main-golden', will be available in build *200906120201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/280f35150229
User: Erno Mononen <emononen@netbeans.org>
Log: #166713: Statements right after heredocs highlighted as errors
Comment 6 Martin Schovanek 2009-06-12 14:37:40 UTC
Verified in trunk build.
Comment 7 Erno Mononen 2009-06-12 15:43:42 UTC
Thanks for verifying, I'm nominating this for 67patch1. 
Comment 8 Erno Mononen 2009-06-15 08:33:36 UTC
*** Issue 167060 has been marked as a duplicate of this issue. ***
Comment 9 pgebauer 2009-07-01 11:01:37 UTC
The fix has been ported into the release67_fixes repository.
http://hg.netbeans.org/release67_fixes/rev/1bac295d7121
Comment 10 Erno Mononen 2009-07-02 07:25:42 UTC
*** Issue 168006 has been marked as a duplicate of this issue. ***