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 152988

Summary: erb highlighting matches the end of the tag incorrectly
Product: ruby Reporter: albemtuh <albemtuh>
Component: RHTMLAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: Other   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: shows bracket matching "<%=" with =>
The real end for the expression "%>" gets highlighted as an error

Description albemtuh 2008-11-11 20:49:22 UTC
The bracket matching highlighting  feature is is picking arrows (=>) as the ending for an erb expression.

In the following example the highlighting parser identifies the first arrow "=>" as the end of the expression, the
closing "%>" gets highlighted as an error (red)


<%= render :partial => 'contact', :collection => @contacts %>
Comment 1 albemtuh 2008-11-11 20:50:35 UTC
Created attachment 73640 [details]
shows bracket matching  "<%=" with =>
Comment 2 albemtuh 2008-11-11 20:51:50 UTC
Created attachment 73641 [details]
The real end for the expression "%>" gets highlighted as an error