fix: ignore $ at notFollowedByCategoryToken when inside quotations
This commit is contained in:
parent
ee4dc452ac
commit
0275d23ad7
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue