fix: ignore $ at notFollowedByCategoryToken when inside quotations

This commit is contained in:
Leonardo de Moura 2020-09-26 17:54:12 -07:00
parent ee4dc452ac
commit 0275d23ad7

View file

@ -482,7 +482,8 @@ fun ctx s =>
let (s, stx) := peekToken ctx s;
match stx with
| some (Syntax.atom _ sym) =>
match cat.tables.leadingTable.find? (mkNameSimple sym) with
if ctx.insideQuot && sym == "$" then s
else match cat.tables.leadingTable.find? (mkNameSimple sym) with
| some _ => s.mkError "notFollowedByCategoryToken"
| _ => s
| _ => s