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 - erb highlighting matches the end of the tag incorrectly
Summary: erb highlighting matches the end of the tag incorrectly
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: Other Linux
: P4 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-11 20:49 UTC by albemtuh
Modified: 2011-01-28 20:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
shows bracket matching "<%=" with => (7.82 KB, image/png)
2008-11-11 20:50 UTC, albemtuh
Details
The real end for the expression "%>" gets highlighted as an error (2.43 KB, image/png)
2008-11-11 20:51 UTC, albemtuh
Details

Note You need to log in before you can comment on or make changes to this bug.
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