bug with eruby in quotes

Bug #1095282 reported by Christian Kruse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nXhtml
New
Undecided
Unassigned

Bug Description

When I write code containing ruby code in quotes, the closing quotation mark is not recognized. Reproducable with `emacs -q`:

    <div class="<%= 'test' %>"> <!-- " needed due to bug -->
    <div class="<%= 'test' %>"> <!-- " needed due to bug -->

If I leave out the quotation mark in the HTML comment, everything is colored as if it still was in a string. I use the current HEAD of nXhtml.

`emacs-Q-nxhtml` throws an error.
`nxhtml-run-Q` hangs with 100% CPU usage, I canceled it after 20 minutes.

Revision history for this message
Christian Kruse (cjk-wwwtech) wrote :
Revision history for this message
Christian Kruse (cjk-wwwtech) wrote :

It seems as if this is not only an eruby problem: happens in PHP, too.

Also, the real problem seems to be that after the %> the quotation area ends. more attribute values after the closing %> do get highlighted as if they were outside of the attribute value

Revision history for this message
Christian Kruse (cjk-wwwtech) wrote :

No solution possible? Do you need more information?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.