feat(apex): javadoc injections (#8232)

Apex codebases commonly use Javadoc-style comments, similar to Java (Apex is Salesforce's object-oriented language).

This updates the injection query to capture javadoc nodes instead of the generic comment for better highlighting and parsing accuracy.
This commit is contained in:
imawaki
2025-10-27 03:07:19 +09:00
committed by GitHub
parent c53bb10a71
commit 738d9ced4c

View File

@@ -3,3 +3,12 @@
(block_comment)
] @injection.content
(#set! injection.language "comment"))
((block_comment) @injection.content
(#lua-match? @injection.content "/[*][*][%s]")
(#set! injection.language "javadoc"))
; markdown-style javadocs https://openjdk.org/jeps/467
((line_comment) @injection.content
(#lua-match? @injection.content "^///%s")
(#set! injection.language "javadoc"))