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 167060 - The line after a "here documents" gets marked incorrectly
Summary: The line after a "here documents" gets marked incorrectly
Status: RESOLVED DUPLICATE of bug 166713
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-14 12:15 UTC by fjan11
Modified: 2009-06-15 09:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fjan11 2009-06-14 12:15:57 UTC
The statement following the "here document" gets a red wriggly line, for example

def test
  puts <<-HERE
Hi there
HERE
  return
end

return gets marked as an invalid statement. If you put an additional newline before the return statement the error goes away.
Comment 1 Erno Mononen 2009-06-15 08:33:37 UTC
This was fixed a while ago, but unfortunately too late for 6.7 - if you don't want to use a daily build, you can fix 
this in 6.7 as per the instructions in issue 166956. The fix will be delivered in patch1 for 6.7.

*** This issue has been marked as a duplicate of 166713 ***
Comment 2 fjan11 2009-06-15 08:40:46 UTC
Thanks! Sorry for the duplicate, I did try a search for "here doc" but it's spelled differently in the other bug report
Comment 3 Erno Mononen 2009-06-15 09:07:02 UTC
No problems, I don't actually mind duplicates as it gives at least some indication on how many people are running into 
a certain issue. Even if the issue is already fixed in dev builds, incoming duplicates will tell us that we should 
really push the fix to the next patch for the latest stable release.