Support backslash-newline in regular expression literals

RESOLVED FIXED

Status

Tamarin
Self-hosting compiler (ESC)
RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: Lars T Hansen, Assigned: Lars T Hansen)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

10 years ago
Subject says it all.  ES4 allows \<newline> (for normalized newline characters) in regexes, ESC should support it.
(Assignee)

Updated

10 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 1

10 years ago
Created attachment 323820 [details] [diff] [review]
Patch (needs patch for 437345)

Handles \<newline> and also strips blanks if the x flag is present.  Over time the regex engine needs to evolve to handle those things, but it's OK for them to be handled in the scanner right now.
Attachment #323820 - Flags: review?(jodyer)
(Assignee)

Updated

10 years ago
Assignee: nobody → lhansen
Status: ASSIGNED → NEW
(Assignee)

Updated

10 years ago
Status: NEW → ASSIGNED

Updated

10 years ago
Attachment #323820 - Flags: review?(jodyer) → review+
(Assignee)

Updated

10 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.