fix(library/init/lean/parser/parser): missing trim
This commit is contained in:
parent
8b3d932212
commit
e2bcf179ac
1 changed files with 2 additions and 0 deletions
|
|
@ -801,6 +801,8 @@ def unicodeSymbolInfo (sym asciiSym : String) (lbp : Option Nat) : ParserInfo :=
|
|||
fun _ => unicodeSymbolFnAux sym asciiSym ("expected '" ++ sym ++ "' or '" ++ asciiSym ++ "'")
|
||||
|
||||
@[inline] def unicodeSymbol {k : ParserKind} (sym asciiSym : String) (lbp : Option Nat := none) : Parser k :=
|
||||
let sym := sym.trim;
|
||||
let asciiSym := asciiSym.trim;
|
||||
{ info := unicodeSymbolInfo sym asciiSym lbp,
|
||||
fn := unicodeSymbolFn sym asciiSym }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue