feat: remove obsolete directives

This commit is contained in:
Christian Clason 2023-08-11 17:07:47 +02:00
parent 8fb218dbfd
commit 776e1b599c
6 changed files with 10 additions and 44 deletions

View file

@ -3,5 +3,4 @@
(heredoc_template
(template_literal) @injection.content
(heredoc_identifier) @injection.language
(#downcase! @injection.language))
(heredoc_identifier) @injection.language)

View file

@ -6,6 +6,5 @@
(#set! injection.language "xml"))
(multiline_string
(multiline_string_type) @_lang
(multiline_string_content) @injection.content
(#inject-language! @_lang))
(multiline_string_type) @injection.language
(multiline_string_content) @injection.content)

View file

@ -1,8 +1,7 @@
(fenced_code_block
(info_string
(language) @_lang)
(code_fence_content) @injection.content
(#inject-language! @_lang))
(language) @injection.language)
(code_fence_content) @injection.content)
((html_block) @injection.content
(#set! injection.language "html")

View file

@ -5,17 +5,15 @@
((comment) @injection.content
(#set! injection.language "phpdoc"))
((heredoc
(heredoc
(heredoc_body) @injection.content
(heredoc_end) @injection.language
(#set! injection.include-children)
(#downcase! @injection.language)))
(#set! injection.include-children))
((nowdoc
(nowdoc
(nowdoc_body) @injection.content
(heredoc_end) @injection.language
(#set! injection.include-children)
(#downcase! @injection.language)))
(#set! injection.include-children))
;; regex

View file

@ -3,8 +3,7 @@
(heredoc_body
(heredoc_content) @injection.content
(heredoc_end) @injection.language
(#downcase! @injection.language))
(heredoc_end) @injection.language)
(regex
(string_content) @injection.content