docs: function isValidForRegexLiteral(context: ParserContext): boolean {
    const previousNonWsToken = context.token(context.count() - 1);
  
    // Valid if at the beginning of the file.
    if (!previousNonWsToken) return true;
  
    return (
      !util.contains(
        ["keyword", "ident", "number", "variable", "specialVariable"],
        previousNonWsToken.name
      ) &&
      !(
        previousNonWsToken.name === "punctuation" &&
        !util.contains(["(", "{", "[", ",", ";"], previousNonWsToken.value)
      )
    );
  }