Skip to content
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

css3 transform会触发for语句的语音 #15

Open
Kassell opened this issue Jun 19, 2020 · 5 comments
Open

css3 transform会触发for语句的语音 #15

Kassell opened this issue Jun 19, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@Kassell
Copy link

Kassell commented Jun 19, 2020

css3 transform会触发for语句的语音

@SaekiRaku SaekiRaku added the bug Something isn't working label Jun 19, 2020
@SaekiRaku
Copy link
Owner

感谢反馈!我看看能否优化下触发规则

@woaibiancheng01214
Copy link

Keywords like $time_before... will trigger the same.

@woaibiancheng01214
Copy link

可以用stack试一下,比如在读键盘buffer的时候,遇到空格,圆括号,方括号,等号,引号。欸不行,如果用户在单词中间编辑单词就失效了。

那要不要考虑一下vscode关于获取用户正在编辑的行的api什么的?就是每次输入一个字符就查询当前行是否有关键字?

@SaekiRaku
Copy link
Owner

SaekiRaku commented Jun 27, 2020

@woaibiancheng01214 经过几天的考虑,我的观点是:更精确的触发规则最好是通过 AST 库进行解析,但这样对于一个娱乐性插件来说,技术投入与用户体验回报不太成正比(请参阅:https://saekiraku.github.io/vscode-rainbow-fart/#/zh/qa.md#%E8%83%BD%E5%90%A6%E6%9B%B4%E7%B2%BE%E7%A1%AE%E7%9A%84%E6%A3%80%E6%B5%8B%E5%85%B3%E9%94%AE%E5%AD%97%EF%BC%9F )。目前我这边认为相对简单的处理方式是对关键字进行语言限制,来尽可能的规避误触发。

@woaibiancheng01214
Copy link

@SaekiRaku 有道理,哈哈,我如果有时间看看这种技术实践就来试一试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants