After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 608027 - Bug on Javascript highlighting when a tag close string is typed
Bug on Javascript highlighting when a tag close string is typed
Status: RESOLVED DUPLICATE of bug 565524
Product: gtksourceview
Classification: Platform
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2010-01-25 12:48 UTC by Carlos Eduardo da Fonseca
Modified: 2011-05-13 17:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix finidng javascript in HTML (976 bytes, patch)
2010-03-25 18:30 UTC, Garrett Regier
none Details | Review
Updated, highlighting hide error (1.43 KB, patch)
2010-03-27 02:43 UTC, Garrett Regier
none Details | Review

Description Carlos Eduardo da Fonseca 2010-01-25 12:48:38 UTC
If I type the following on gedit: 

$("<div/>");

All that comes after /> loses the highlighting.

It just don't do it if I enter a whitespace, so it will be "<div />", but I can't cause this won't work on jQuery.

Hope it helps. Thank you.
Comment 1 Carlos Eduardo da Fonseca 2010-01-29 15:58:32 UTC
Forgot to say, this only happends on PHP highlighting.

For example:

somepage.php

... Previous HTML/CSS/PHP content ...

<script type="text/javascript">
  // From "/" everything (inside script tag) gets highlighted as plain text.
  $("<div/>").appendTo("body");
</script>
Comment 2 Carlos Eduardo da Fonseca 2010-01-29 16:00:09 UTC
Happens also on HTML highlighting...
Comment 3 Garrett Regier 2010-03-25 18:30:16 UTC
Created attachment 157090 [details] [review]
Fix finidng javascript in HTML
Comment 4 Garrett Regier 2010-03-27 02:43:36 UTC
Created attachment 157244 [details] [review]
Updated, highlighting hide error
Comment 5 Carlos Eduardo da Fonseca 2010-03-28 00:38:41 UTC
Hmm, it's not working yet...

Try this inside a *.{php,html} file 

Testing
<script src="www.google.com.br/foobar.js"></script>
  var x = 100;
</script>

Thanks for your answer.
Comment 6 Carnë Draug 2011-05-13 15:55:09 UTC
Hi!

this seems to be a duplicate of bug #565524 . Maybe should be marked as such?
Comment 7 Ignacio Casal Quinteiro (nacho) 2011-05-13 17:42:59 UTC
Marking as such then. Thanks

*** This bug has been marked as a duplicate of bug 565524 ***