mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
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:
parent
246f4cc20c
commit
efe06e3057
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue