The parser appears to have issues with the following:
hdoc = <<END
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.
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.
Fixed in jruby-parser and updated the lib in 280f35150229.
Martine, can you please verify this? I'd like to get this fix to patch1.
*** Issue 166956 has been marked as a duplicate of this issue. ***
Integrated into 'main-golden', will be available in build *200906120201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Erno Mononen <email@example.com>
Log: #166713: Statements right after heredocs highlighted as errors
Verified in trunk build.
Thanks for verifying, I'm nominating this for 67patch1.
*** Issue 167060 has been marked as a duplicate of this issue. ***
The fix has been ported into the release67_fixes repository.
*** Issue 168006 has been marked as a duplicate of this issue. ***