mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -04:00
feat(latex): injections for luacode, asy{def} environments
This commit is contained in:
parent
874b99065b
commit
35fa869b53
2 changed files with 13 additions and 8 deletions
|
|
@ -17,15 +17,20 @@
|
|||
code: (source_code) @injection.content
|
||||
(#set! injection.language "python"))
|
||||
|
||||
(luacode_environment
|
||||
code: (source_code) @injection.content
|
||||
(#set! injection.language "lua"))
|
||||
|
||||
(asy_environment
|
||||
code: (source_code) @injection.content
|
||||
(#set! injection.language "c"))
|
||||
|
||||
(asydef_environment
|
||||
code: (source_code) @injection.content
|
||||
(#set! injection.language "c"))
|
||||
|
||||
(minted_environment
|
||||
(begin
|
||||
language: (curly_group_text
|
||||
(text) @injection.language))
|
||||
(source_code) @injection.content)
|
||||
|
||||
((generic_environment
|
||||
(begin
|
||||
name: (curly_group_text
|
||||
(text) @_env))) @injection.content
|
||||
(#set! injection.language "c")
|
||||
(#any-of? @_env "asy" "asydef"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue