标识符使用unicode字符 #40
sxwangzhiwen
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
目前Zig语言中函数名和变量名只能用ASCII字符,为了能在标识符中使用中文等unicode字符,我写了个Zig语言代码:
https://github.com/sxwangzhiwen/unicodeid
可判断UTF-8字符的 ID_Start, ID_Continue, XID_Start, XID_Continue 属性。
为了让Zig项目组参考,这个是全英文的了。:)
数据获取和生成自:https://www.unicode.org/Public/UCD/latest/ucd/DerivedCoreProperties.txt
Beta Was this translation helpful? Give feedback.
All reactions