You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
I'm not sure how to implement this, since the syntax highlighter is not connected to the RLS. We need to know from the compiler what code is compiled and what is not, then inform the highlighter some how. We might only be able to do that in rustw.
The text was updated successfully, but these errors were encountered:
cquery (a C++ language server) does this by implementing a new server -> client message called publishInactiveRegions as a protocol extension. The message contains an array of Ranges identifying the inactive regions in the file.
I think it's distinct from semantic highlighting. Semantic highlighting involves coloring individual tokens based on their role (or the role of the entity they resolve to). This feature involves taking entire sections of code (entire lines) and greying them out, possibly combining the grey filter with the semantic colors of the tokens inside.
I'm not sure how to implement this, since the syntax highlighter is not connected to the RLS. We need to know from the compiler what code is compiled and what is not, then inform the highlighter some how. We might only be able to do that in rustw.
The text was updated successfully, but these errors were encountered: