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 126331 - Create a "quick fix" to highlight "here document" terminating markers with trailing spaces
Summary: Create a "quick fix" to highlight "here document" terminating markers with tr...
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-30 21:24 UTC by richo
Modified: 2011-01-28 20:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description richo 2008-01-30 21:24:31 UTC
Quickfixes to find and fix the following scenarios would be good

1) trailing spaces on termination of "here document" string literals.

  <<DOCUMENT
 blah blah
DOCUMENT(spaces)   <--- the spaces cause the terminator to be ignored and code will fail.

2) Indented terminator when the "-" modifier has not been used

  <<DOCUMENT
    blah blah
  DOCUMENT         <---- spaces before the terminator cause code to fail

 Fix a) change the declaration to <<-DOCUMENT
 Fix b) remove leading spaces from terminating marker
Comment 1 richo 2008-01-30 21:26:52 UTC
Hi Tor,

I think you have nailed it. I spent ages trying to work out why sometimes it was working for me and others not. I never
considered trailing spaces (what a sucky language feature).

I have closed this off as invalid and created a new enhancement request for some quickfixes
http://www.netbeans.org/issues/show_bug.cgi?id=126331

Thanks for letting me know the problem!

Cheers,

Anthony Richardson
Comment 2 richo 2008-01-30 21:27:53 UTC
Doh, closed wrong issue!