• R
    Improve char escaping in lexer messages · b9441f24
    Ryan Cumming 提交于
    Currently ', " and \ are escaped as \', \" and \\ respectively. This
    leads to confusing messages such as `error: unknown start of token: \\`
    when encountering a single backslash.
    
    Fix by emitting printable ASCII characters directly. This will still
    escape \r, \n, \t and Unicode characters.
    
    Fixes #47902
    b9441f24
mod.rs 71.2 KB