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

Switch 的 parse 有问题 #24

Closed
Berrysoft opened this issue Oct 30, 2022 · 2 comments · Fixed by #46
Closed

Switch 的 parse 有问题 #24

Berrysoft opened this issue Oct 30, 2022 · 2 comments · Fixed by #46

Comments

@Berrysoft
Copy link
Contributor

Berrysoft commented Oct 30, 2022

let mut splits = s.split('|');

Ayaka Script 允许 ||| 算符的存在,要么换一个算符,要么就要写一个复杂的 parser。

/cc @LaoshuBaby

@Berrysoft
Copy link
Contributor Author

暂时认为应该换成 @,这是最简单的,通常也不会在文案中出现这个字符。

@LaoshuBaby
Copy link
Member

LaoshuBaby commented Oct 30, 2022

还是换算符吧,毕竟需要写邮件地址的剧本应该不多见吧(笑

真要用@的时候就考虑用转义符号好了,类似\{at}的形式?

这算是润了

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

Successfully merging a pull request may close this issue.

2 participants