ImUrX / vscode-scarpet

Scarpet for VSCode
MIT License
15 stars 1 forks source link

[Bug] text in the ' is not matched correctly #23

Closed shenjackyuanjie closed 2 years ago

shenjackyuanjie commented 2 years ago

image as the pic

ImUrX commented 2 years ago

Can you pass me the code so i can debug it easily?

ImUrX commented 2 years ago

I still need to test it before releasing, will wait for your code so i can test it first-hand lol

shenjackyuanjie commented 2 years ago
run('player %s spawn at %f %f %f facing %f %f in %s', player_name, position:0, position:1, position:2, rotation:0, rotation:1, dimension);

help() -> (
    print(format('y ' + '-'*10 + '帮助信息' + '-'*10));
    print(format('m 提醒:大部分信息都可以点击来执行相对应的命令,所以请小心点击', '^g 包括我! 点我来执行 /' + global_filename, '!/' + global_filename));
    print(format('e /' + global_filename + ' -> ', 'c 同 /' + global_filename + ' help'));
    print(format('e /' + global_filename + ' help -> ', 'c 显示这条帮助信息', '^g 你就在看着我呢!', '!/' + global_filename + ' help'));
    print(format('e /' + global_filename + ' reload -> ', 'c 重新加载script', '^g 获得成就:我重载我自己', '!/' + global_filename + ' reload'));
    print(format('e /' + global_filename + ' score load -> ', 'c 加载各项榜单', '^rub 警告:这会覆盖游戏内的现有数据(所以请自行输入命令)'));
    print(format('e /' + global_filename + ' score save -> ', 'c 保存各项榜单', '^ub 提醒:这会覆盖文件数据', '!/' + global_filename + ' score save'));
    print(format('e /' + global_filename + ' score print -> ', 'c 输出各项榜单数据', '^gs 吐槽一下,scarpet的字符串处理真的麻烦死了', '!/' + global_filename + ' score print'));
    print(format('e /' + global_filename + ' debug level -> ', 'c 显示DEBUG信息等级', '^g (没啥可吐槽的)', '!/' + global_filename + ' debug level'));
    print(format('e /' + global_filename + ' debug level <debug_level> -> ', 'c 设置DEBUG信息等级为<debug_level>   ', '^g <debug_level> 为 0-4的正整数,默认为2', '?/' + global_filename + ' debug level '));
//    print(format('e /' + global_filename + ' xxx -> ', 'c xxx', '^g xxx', '! /' + global_filename + ' xxx'));
    print(format('y [系统信息]' + global_filename + ' 版本: ' + global_version));
    print(format('y [系统信息]' + global_filename + ' 文件名: ' + global_filename));
    print(format('y [插件信息]' + global_filename + ' 数据存储路径: ' + global_score_path));
    print(format('e 感谢 @Harvey_Husky 延皓 的支持! script中一部分源码就来自哈姥姥!', '^g 哈姥姥真好用(', '?https://g·······apack'));
);

thanks!

shenjackyuanjie commented 2 years ago

)`ZXQL90MP$S~G`S03MW4(G

ImUrX commented 2 years ago

looks good! fixed

shenjackyuanjie commented 2 years ago

thanks!