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

Unicode Variable Name Support Issue in Nim VS Code Extension #242

Open
xiamuguizhi opened this issue Sep 20, 2024 · 0 comments
Open

Unicode Variable Name Support Issue in Nim VS Code Extension #242

xiamuguizhi opened this issue Sep 20, 2024 · 0 comments

Comments

@xiamuguizhi
Copy link

I encountered an issue with the Nim extension in Visual Studio Code related to support for Unicode characters, specifically when using Chinese variable names.

Here is a test code example:

var 数字 = 4: int2
var 文本 = ": string你好,世界!"

var number: int = 42
var text: string = "Hello, World!"

echo "数字是: ", 数字
echo "文本内容是: ", 文本
echo "The number is: ", number
echo "The text content is: ", text

When using Chinese variable names (数字 and 文本), the VS Code plugin throws errors, such as Error Type: int2 and other related issues. However, the code works correctly with English variable names (number and text).

This indicates that the language server or plugin may have issues handling Unicode characters. I hope to see improved support for Unicode characters in the future.

Thank you for your attention to this matter!


nim-lang.org v1.0.2

图片

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

1 participant