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

Inconsistent recognition in an object's property #263

Closed
PythonYunfei opened this issue Jan 29, 2023 · 2 comments
Closed

Inconsistent recognition in an object's property #263

PythonYunfei opened this issue Jan 29, 2023 · 2 comments

Comments

@PythonYunfei
Copy link

PythonYunfei commented Jan 29, 2023

Inconsistent recognition in different parts of an object's property. See these below:

a:={ddccc:789}
d:=a.dd%'c'%cc

image
image

ddccc is a whole property of a. However, dd is recognized as "Other.Property" while the back part cc is recognized as "Other" which is nothing. Both of them are incorrect white rather than orange which is set as the property's color.
image
Could you improve your plugin to recognize both of them successfully as the property of a? Or it would be better if both of them could be recognized through the semantic instead of through textmate scopes.

@thqby
Copy link
Owner

thqby commented Jan 29, 2023

Semantic tokens in complex expressions are not considered.
In addition, they are all part of the property name and should not be property.

@PythonYunfei
Copy link
Author

PythonYunfei commented Jan 29, 2023

Semantic tokens in complex expressions are not considered.

There's no problem. It is all up to your convenience. Semantic tokens is not a must.
However, as above fist two pictures show, could you please let cc to be recognized as the same with 'dd'?
Sure, they are all part of the property name. But they must not be two different parts.

thqby added a commit that referenced this issue Jan 30, 2023
@thqby thqby closed this as completed Jan 30, 2023
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