Remove regex parser #148
MischaPanch
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey. I don't want to discourage you or anything like that, and I get that lot's of things are possible with vibe-coding today.
Still, I would recommend you to remove the fast, regex based mode. It cannot work well in theory, programming languages are not regular languages. You will get issues on this, and no amount of patching the regexes will ever help.
Linking the legendary stackoverflow post on html (in those days nobody would have even considered parsing a proper language with regex)
https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454
Beta Was this translation helpful? Give feedback.
All reactions