the tokenizer chokes on nested templates past three levels deep. before we patch it again — is the recursive descent even the right shape?
Reading src/lexer.ts — the depth counter resets inside interpolations. I can patch it, but a state machine would remove the class of bug…
▸ Edit lexer.ts +84 −12
fork it — try the state machine on a branch, keep the patch here. we'll take whichever reads better.
⑂ branch — “rewrite the lexer as a state machine”
3 messages · picks up right here · claude -r 91c2…
Both pass. The branch is 60 lines shorter and reads linearly — want me to fold it back in?