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

no-commented-out-code can't detect the chinese comment #50

Open
DouMJun opened this issue Dec 6, 2022 · 1 comment
Open

no-commented-out-code can't detect the chinese comment #50

DouMJun opened this issue Dec 6, 2022 · 1 comment

Comments

@DouMJun
Copy link

DouMJun commented Dec 6, 2022

comment like: // 有效的中文 // 中文,中文 // 中文测试&&中文测试 will be detected as code

@hi-zhaolei
Copy link

It`s supported, but be careful not to use English punctuation marks.

The problem you are facing is because ast parsing will parse symbols such as && or , into ast ExpressionStatement, so an error will be prompted.

image

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

No branches or pull requests

2 participants