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 125502 - JS syntax highlight gets messed up w/ ruby embedded code
Summary: JS syntax highlight gets messed up w/ ruby embedded code
Status: RESOLVED INCOMPLETE
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-17 17:33 UTC by swperman
Modified: 2009-02-10 14:36 UTC (History)
1 user (show)

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 swperman 2008-01-17 17:33:43 UTC
I have a .rhtml file (in my Ruby on Rails app) with some javascript in it, the syntax highlighting inside the <script>
tags works fine, except when I have embedded Ruby code between <%= %> tags. I get a red line under the code and a
"syntax error" message, and all the script code (until the closing </script> tag) from this point on doesn't have syntax
highlighting anymore, but of course the code runs fine without problems. The syntax highlighting for code outside
<script> tags works just fine.
Comment 1 novakm 2008-01-21 15:12:01 UTC
Reassigning to ruby for evaluation
Comment 2 Petr Jiricka 2008-03-31 01:25:01 UTC
Hi, this was improved significantly in NB 6.1, can you please try this in the latest NetBeans 6.1 build?
http://deadlock.netbeans.org/hudson/job/trunk/

If this still happens, can you please attach a concrete file that exhibits this error? Thanks.