Add extra language injections for latex (#4896)

Add python injections to contents of `sagetex` defined environments, similarly to how `pycode` currently treated.
This commit is contained in:
lnay 2023-06-02 11:37:24 +01:00 committed by Christian Clason
parent 246f4cc20c
commit efe06e3057

View file

@ -10,6 +10,16 @@
(source_code) @injection.content
(#set! injection.language "python"))
(sagesilent_environment
code:
(source_code) @injection.content
(#set! injection.language "python"))
(sageblock_environment
code:
(source_code) @injection.content
(#set! injection.language "python"))
(minted_environment
(begin
language: (curly_group_text