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 133166 - RHTML editor wrongly flags error for %>%<
Summary: RHTML editor wrongly flags error for %>%<
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-18 08:05 UTC by eostrom
Modified: 2011-01-28 20:11 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 eostrom 2008-04-18 08:05:27 UTC
In NetBeans 6.1RC2, the editor flags an error in this line in an .html.erb file:

<span><%= 100 %>%</span>

The error is reported as ", Unexpected tLT" and "Unmatched tag".

If I add a space before or after the second %, the error goes away.  But then I have unwanted whitespace in my markup.

I may be wrong, but I think this is valid syntax.  The second % isn't an embedding signifier, it's just a percent sign.

It could be that the parser is interpreting the second % as "a line of Ruby code follows", but (a) that syntax is
optional for ERB, and not enabled by Rails; and (b) the way I read the ERB RDoc, it should only apply if the % is the
first non-whitespace character in the line.