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

Summary: Create a "quick fix" to highlight "here document" terminating markers with trailing spaces
Product: ruby Reporter: richo <richo>
Component: EditingAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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!