Dynamically inject languages into {here,now}docs
calebdw opened this issue · 3 comments
calebdw commented
Hello!
Would it be possible to add injection queries for heredocs and nowdocs?
Thanks!
gbprod commented
Not sure it could help, but I've made something here: https://github.com/gbprod/php-enhanced-treesitter.nvim/blob/main/queries/php/injections.scm to inject SQL language when necessary...
gbprod commented
You can find the injections queries for that here : https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/php/injections.scm#L8-L18
calebdw commented
Yes, I PRd those queries