feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent 7508765d7a
commit 20c077f374
1238 changed files with 6453 additions and 9029 deletions

View file

@ -0,0 +1,38 @@
([
(block_comment)
(line_comment)
] @injection.content
(#set! injection.language "comment"))
((block_comment) @injection.content
(#lua-match? @injection.content "/[*][!<*][^a-zA-Z]")
(#set! injection.language "doxygen"))
; markdown-style javadocs: https://openjdk.org/jeps/467
((line_comment) @injection.content
(#lua-match? @injection.content "^///%s")
(#offset! @injection.content 0 4 0 0)
(#set! injection.language "markdown_inline"))
; markdown-style javadocs: https://openjdk.org/jeps/467
((line_comment) @injection.content
(#lua-match? @injection.content "^///%s+[@]")
(#offset! @injection.content 0 4 0 0)
(#set! injection.language "doxygen"))
((method_invocation
name: (identifier) @_method
arguments: (argument_list
.
(string_literal
.
(_) @injection.content)))
(#any-of? @_method "format" "printf")
(#set! injection.language "printf"))
((method_invocation
object: (string_literal
(string_fragment) @injection.content)
name: (identifier) @_method)
(#eq? @_method "formatted")
(#set! injection.language "printf"))