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

NumPut()不能正确高亮OffSet #638

Open
PythonYunfei opened this issue Nov 13, 2024 · 5 comments
Open

NumPut()不能正确高亮OffSet #638

PythonYunfei opened this issue Nov 13, 2024 · 5 comments

Comments

@PythonYunfei
Copy link

image

@PythonYunfei PythonYunfei changed the title numPut()不能正确高亮OffSet NumPut()不能正确高亮OffSet Nov 13, 2024
@thqby
Copy link
Owner

thqby commented Nov 16, 2024

image

@PythonYunfei
Copy link
Author

image
如果可以的话,希望最好能 先区分奇数位上传入的参数是Type还是Target,从而再区分紧随其后的偶数位上的参数是Number还是Offset。确定参数名后,再根据光标所在位置的参数名,进行加粗高亮。
目前当且仅当传入的参数是字符串时,奇数位对应的参数名才是Type;不是字符串,奇数位对应的参数名便是Target

@PythonYunfei
Copy link
Author

PythonYunfei commented Nov 18, 2024

image 如果可以的话,希望最好能 先区分奇数位上传入的参数是Type还是Target,从而再区分紧随其后的偶数位上的参数是Number还是Offset。确定参数名后,再根据光标所在位置的参数名,进行加粗高亮。 目前当且仅当传入的参数是字符串时,奇数位对应的参数名才是Type;不是字符串,奇数位对应的参数名便是Target

还有一个更可行的区分方法:
当且仅当奇数位参数处于最后一个奇数位时,对应的参数名才是Target;否则,参数名是Type

@thqby
Copy link
Owner

thqby commented Nov 19, 2024

1

@PythonYunfei
Copy link
Author

PythonYunfei commented Nov 19, 2024

image
您是更新了吗,目前我这没显示高亮。

如果更新了,希望:
(1)位于最前面的两个参数的参数名,始终识别为Type1Number1
(2)如果参数的位置p>=3 且位于最后,则从最末一个奇数位参数开始,其参数名始终识别为Target[Offset]。而不是在中间那两个*,*中高亮。

另外希望:
在实现上面(1)、(2)的基础上,如果参数的参数名被识别为Type1Number1[OffSet],则将对 该位置传入实参的类型进行适度地诊断。如果类型不符合,则报错。 其中[OffSet]的参数类型可为Unset,即:参数总数>=3且为奇数时 最末一个参数右侧 支持1个尾随逗号。

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