Vsnips
Vsnips copied to clipboard
Ultisnips for vscode
Bumps [terser](https://github.com/terser/terser) from 5.14.1 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1. Commits f545bdb 3.0.1 c57d4c2 fix a few old XO issues for backport 419250f Fix potential ReDoS (#37) See full diff in compare view [![Dependabot...
ultisnips支持`!p`在snippet中执行python代码,请问Vsnips支持这个功能吗?谢谢。 ``` 4.4.4 Global Snippets: *UltiSnips-globals* Global snippets provide a way to reuse common code in multiple snippets. Currently, only python code is supported. The result of executing the contents...
VSCode的行为很奇怪: 针对有prefix的代码片段, 因为我们调用编辑器做了一次修改, 将原始的prefix删除了, 具体代码见: https://github.com/corvofeng/Vsnips/blob/eb2e0d7559572d40055a9033390851ec211d8cb1/src/script_tpl.ts#L294 ```javascript if (prefix !== "") { const editor = vsContext.getActiveEditor(); if (editor !== undefined) { const startPos = new Position(vsContext.position.line, 0); const endPos =...
下面是all.snippets中的一个片段 ``` snippet todo "TODO comment" bw `!p snip.rv=get_comment_format()[0]` ${2:TODO}: $0${3: } `!p snip.rv=get_comment_format()[2]` endsnippet ``` 片段中比较重要的部分就是:`!p snip.rv=get_comment_format()[0]` 该模板需要被分为两部分解析: `get_comment_format`,与`[0]` 其中, `get_comment_format`用于获取当前源代码的注释方式, 需要在补全时方能知道
https://github.com/connorferster/handcalcs 这是一个将Python中手写的表达式转换成latex的库, 是否可以写一个类似的库, 将任意文档中的手写表达式转换为Latex语句
https://mp.weixin.qq.com/s/8s_esHNbTG53oG9-UI4A8A
Hello, I've been playing with this extension and seems to work as described. I created a tex.snippets file but it doesn't seem to be detected inside a tex document. The...

目前的 snippet parse 基于正则 global search,实现 ultisnips 的一些语法解析稍微有点麻烦。比较容易的解析思路是: 1. 先基于行查找,可以处理 `extends`/`priority` 等其他关键词 2. 碰上行首 `snippet` , 开始进入 “snippet 文本解析”状态 3. 碰上行首 `endsnippet` ,结束 “snippet 解析”状态,将读取到的完整 snippet 文本放入更细的 snippet body 解析函数中...