-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New lexer #25
base: docs
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
首先,感谢这一项及时的工作!完全基于正则表达式的匹配在tmd的section的匹配上遇到一定困难,状态机很有希望有效解决这一问题。
但在合并之前,应当解决劣势中1、2所提及的问题,并进行充分的测试。该部分更改基本全部处于lib/tmdoc中,对其他部分的继续开发不构成阻碍。
希望@shigma对状态机及rules等引入的概念提供一定的注释,进行说明,方便大家共同参与解决问题,并进一步改进。
pr保留,并在new-lexer分支上进一步调试,在解决以上两个问题后进行合并。
# Conflicts: # build/index.js
现在new-lexer分支可以进行调试了,从我的初步测试来看,除了小节线,,API的Setting、Ammonia的overview都出现了卡死的状况,亟待解决。 |
一个新的 Lexer,利用状态机实现。
优势:
劣势:
希望大家能帮忙解决这些问题。