Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

变量与-符号相连时的问题 #8

Closed
nobodxbodon opened this issue May 12, 2020 · 3 comments
Closed

变量与-符号相连时的问题 #8

nobodxbodon opened this issue May 12, 2020 · 3 comments
Assignees

Comments

@nobodxbodon
Copy link
Member

标识符会包括-:
php 代码
Screen Shot 2020-05-11 at 5 29 27 PM
python 代码
Screen Shot 2020-05-11 at 5 38 57 PM

@nobodxbodon
Copy link
Member Author

之前在翻译插件的翻译所有标识符功能中,用了 vsc 的 API executeDocumentSymbolProvider获取当前源码文件中的所有标识符,但好像有些编程语言识别率不高

如果仅靠正则表达式难以识别所有标识符,不知是否可与上面 api 合用……

nobodxbodon pushed a commit that referenced this issue May 12, 2020
@nobodxbodon
Copy link
Member Author

刚已提交粗糙测试以复现上述问题:
Screen Shot 2020-05-11 at 10 24 14 PM

zj1d added a commit that referenced this issue May 12, 2020
nobodxbodon pushed a commit that referenced this issue May 12, 2020
nobodxbodon pushed a commit that referenced this issue May 12, 2020
@nobodxbodon
Copy link
Member Author

确认 1.0.3 中修复

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants