mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 18:06:18 +04:00
452f7d071c
This highlights edoc within Erlang comments. The trick was to have the Erlang grammar consume newlines and then give them to EDoc in the injection to use so that line-wise elements could be parsed accurately.
8 lines
241 B
Scheme
8 lines
241 B
Scheme
((line_comment (comment_content) @injection.content)
|
|
(#set! injection.language "edoc")
|
|
(#set! injection.include-children)
|
|
(#set! injection.combined))
|
|
|
|
((comment (comment_content) @injection.content)
|
|
(#set! injection.language "comment"))
|