swift
342e0658 - [Parse] Expand unbalanced `)` regex literal heuristic

Commit
3 years ago
[Parse] Expand unbalanced `)` regex literal heuristic Previously we would only check for a starting character of `)` when performing a tentative lex of a regex literal. Expand this to cover the entire range of the regex literal, ensuring to take escapes and custom character classes into account.
Author
Parents
  • lib/Parse
    • File
      Lexer.cpp
  • test/StringProcessing/Parse
    • File
      forward-slash-regex.swift
    • File
      prefix-slash.swift