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 733744 - Incorrect syntax highlighting when string '/>' appears in a script or style tag
Incorrect syntax highlighting when string '/>' appears in a script or style tag
Status: RESOLVED DUPLICATE of bug 614072
Product: gtksourceview
Classification: Platform
Component: Syntax files
3.10.x
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-25 16:06 UTC by dot.mar1o
Modified: 2014-08-08 21:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description dot.mar1o 2014-07-25 16:06:30 UTC
Any occurence of '/>'  terminates a script (or style) tag, so the following code is highlighted incorrectly.

<script>
document.write('abc<br />def');
var a = 1;
</script>

<script>
// document.write('abc<br />def');
var a = 1; 
</script>

<style>
/* here's a  <br />  style */
br { line-height: 2px; }
</style>

<style>
.tag::before { content:"< "; }
.tag::after { content:" />"; }
</style>
Comment 1 Sébastien Wilmet 2014-08-08 21:54:58 UTC

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