feat(doxygen): add Javadoc/Doxygen syntax highlighting#204
Open
da-r-k wants to merge 2 commits intozed-extensions:mainfrom
Open
feat(doxygen): add Javadoc/Doxygen syntax highlighting#204da-r-k wants to merge 2 commits intozed-extensions:mainfrom
da-r-k wants to merge 2 commits intozed-extensions:mainfrom
Conversation
Add tree-sitter-doxygen grammar and injection rules to highlight Javadoc tags (@param, @return, @throws, etc.) inside /** comments. Uses a WASM-compatible fork of tree-sitter-doxygen until tree-sitter-grammars/tree-sitter-doxygen#21 is merged upstream. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
|
@da-r-k thanks for the addition, let's see if tree-sitter-grammars/tree-sitter-doxygen#21 gets merged. Let's give the team a couple of days. |
- Inject Java syntax into @code/@Endcode blocks - Restrict tag highlighting to valid Javadoc tags only - Remove Doxygen-only features (\a, \c emphasis) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
Collaborator
|
Doesn't @param feel off to you? Why not having it as other @? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
Add syntax highlighting for Javadoc/Doxygen tags (
@param,@return,@throws, etc.) inside/** */comments by integrating thetree-sitter-doxygengrammar.Changes
tree-sitter-doxygengrammar toextension.tomllanguages/doxygen/withconfig.toml(hidden language) andhighlights.scminjections.scmto properly match/**Javadoc commentsNotes
tree-sitter-doxygenbecause the upstream scanner uses libc functions (fprintf,isalnum,iswspace) unavailable in Zed's WASM sandboxtree-sitter-grammars/tree-sitter-doxygenTesting
@param,@return,@throwsetc. should be highlighted as keywords@paramshould be highlighted as variables