mirror of https://github.com/helix-editor/helix
Improve Edoc highlighting within Erlang
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.pull/4887/head
parent
a3f321a531
commit
452f7d071c
@ -1,2 +1,7 @@
|
||||
((comment_content) @injection.content
|
||||
(#set! injection.language "edoc"))
|
||||
((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"))
|
||||
|
Loading…
Reference in New Issue