corvofeng

Results 21 comments of corvofeng

I'm sorry I didn't reply to you in time, I didn't check the issue page often! If you use latex workshop, the vscode will consider it syntax as `latex`. ![image](https://user-images.githubusercontent.com/12025071/86513061-ac383700-be39-11ea-95c8-50e73d8eb1fb.png)...

I noticed that you had mentioned the `tex.snippets`. In this project [https://github.com/honza/vim-snippets](https://github.com/honza/vim-snippets), there are only `tex.snippets`. I would like to add the `tex.snippets` for latex, so that user can use...

> For example: > ``` > snippet mk "Math" wA > $$1$ > endsnippet > ``` > > should not require tab-complete in vscode but it does. Well, Vsnips does...

> The second issue is that if you use snippets without alphanumerical characters, vsnips does not register them. An example: > ``` > snippet ,, "ldots" iA > , \ldots,...

> The final issue is some of the python integration. The following is a very useful latex function: > ``` > global !p > texMathZones = ['texMathZone'+x for x in...

Well, thanks for your issues, maybe next time you can split it into different issues and it will be easier to track.

Well, in Vsnips 0.4.1 the 'A'(auto trigger) option is supported, but it may be not recommended because it would damage the performance. Now that this issue is open, I offer...

关于正则解析的问题: 你所说的状态机解析方式, 我在一开始设计Vsnips时就考虑过这个问题, 其实正则也是一种状态机模型. 按照当前snippet的语法来说, 正则完全够用了. 而且不止在解析时使用了, 在替换函数时也用了. 项目如果分层使用正则, 阅读起来感觉也是ok的. 我个人考虑没必要一定换成函数写状态机去解析. 看到你改了VISUAL的那个测试用例, 请问是有什么和预期不一致的行为吗?

关于extend的功能: 这个功能应该是比较重要且紧急的功能了, 这部分代码你怎么改都可以, 你本地测试了. 我再检查一下代码, 再测试一下功能就好了. 另外看到你说要检查语言更新时的策略, 动态的监听snip文件, 我之前也考虑过, 这个功能比较重要吧, 但是感觉不怎么紧急(因为我们一般不会一直去修改snip, 除非调试), 而且这个功能实现起来容易有bug(snipmanager的出现可能会好一点), 我就一直没有考虑这个功能, 如果你有兴趣, 可以考虑慢慢实现. 既然说道到检查snip文件, 你是否有考虑过当运行网页版VSCode时的可能会遇到的问题, 网页运行中就没有文件系统可以用了, 该怎么给用户提供服务呢. 另外, 老哥你有兴趣建立一个snip的分享网站, 如果有snip对应的网站, 用户可以登录之后整理自己的snip, 之后即使在网页版的VSCode中可能也可以直接使用了.