Closed Bug 232985 Opened 22 years ago Closed 20 years ago

Script highlighting in source view doesn't understand regular expressions

Categories

(Other Applications Graveyard :: Venkman JS Debugger, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: bugzilla-mozilla-20000923)

References

()

Details

Attachments

(1 file)

bug 127751 seems to be the bug of record for this build: cvs from 02/02/04 midafternoon. steps: load: data:text/html,<html><script>function quote1(s) {return s.replace(/'/g,"\\'")} function quote2(s) {return s.replace(/"/g,"\\'")}</script> load venkman select loaded scripts select "script>" double click to view source the single line will look like this: plain: <html><script> bold: function plain: quote1(s) { bold: return plain: s.replace(/' green: /g,"\\ plain: '" green: )} function quote2(s) {return s.replace(/ plain: "/g," green: \\' plain: ")}</script> expected results: plain: <html><script> bold: function plain: quote1(s) { bold: return plain: s.replace(/ something: ' plain: /g," green: \\' plain: ")} bold: function plain: quote2(s) { bold: return plain: s.replace(/ something: " plain: /g," green: \\' plain: ")}</script>
Product: Core → Other Applications
Where's the "and accept bug" button, BugZilla! :P
Assignee: rginda → silver
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → ASSIGNED
OS: Windows XP → All
Hardware: PC → All
Version: Other Branch → Trunk
This marks all the way from the opening / to the end / in <r>, and colours it purple. It ignores the letter modifiers, as they don't otherwise hurt the parser.
Attachment #223225 - Flags: review?(rginda)
Comment on attachment 223225 [details] [diff] [review] Add REGEXP type to source formatter r=rginda
Attachment #223225 - Flags: review?(rginda) → review+
Checked in --> FIXED.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: