fix: configure language as "hidden" #4
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This tells Zed that this is not a "real" language: it should only be used for syntax highlighting and does not provide any language features like syntax, comment chars, etc. In my (brief) testing, it fixed the issues we saw in #3 without needing any changes to Zed. I tested this in Rust, and also in some PHP files.
hiddenitself seems to be "hidden" in the docs, but the code explains this: https://github.com/zed-industries/zed/blob/d4b5bb9f173d78d5795387269edc68f979024898/crates/language/src/language.rs#L764-L767. It's used in "lanugages" like jsdoc and phpdocFixes #3