Syntax highlight (JS): Portions of expressions between / and / taken as regular expressions

Bug #1264152 reported by Teo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GtkSourceView
Fix Released
Medium
gtksourceview3 (Ubuntu)
Triaged
Low
Unassigned

Bug Description

See screenshot. This is a JS file.
There are portions of expressions that are incorrectly highlighted in pink as if they were strings.

There is no syntax error before or after the captured portion of text. The script is parsed as expected by the javascript interpreter, so the syntax highlight is wrong.

Oh my ******* god, I see what the problem is!!
The portion between "/" and "/" are highlighted as if they were regular expressions.

But they aren't, nor does the parser of the language interpreter interpret them as such, so the syntax highlighting is wrong.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: gedit 3.6.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-34.49-generic 3.8.13.12
Uname: Linux 3.8.0-34-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.5
Architecture: amd64
Date: Wed Dec 25 21:16:41 2013
InstallationDate: Installed on 2013-10-11 (75 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
SourcePackage: gedit
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Teo (teo1978) wrote :
Revision history for this message
Teo (teo1978) wrote :
description: updated
Teo (teo1978)
summary: - Syntax highlight: nonsense pink coloring of portions of expressions in
- JS
+ Syntax highlight (JS): Portions of expressions between / and / taken as
+ regular expressions
Revision history for this message
Sami Jaktholm (sjakthol) wrote :

Gedit uses GtkSourceView for syntax highlighting. Reassigning to gtksourceview3 and linked an upstream bug.

affects: gedit (Ubuntu) → gtksourceview3 (Ubuntu)
Changed in gtksourceview3 (Ubuntu):
status: New → Confirmed
Changed in gtksourceview:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for sending the bug to GNOME

Changed in gtksourceview3 (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Low
Changed in gtksourceview:
status: New → Fix Released
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.