feat(nvim): add php_only treesitter to markdown php code blocks

This commit is contained in:
2026-03-10 02:01:04 +02:00
parent cdd76b21b8
commit eb29c2e23b

View File

@@ -0,0 +1,9 @@
; extends
; Use php_only parser for php fenced code blocks (doesn't require <?php opening tags)
((fenced_code_block
(info_string
(language) @_lang)
(code_fence_content) @injection.content)
(#eq? @_lang "php")
(#set! injection.language "php_only"))