diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 97c979dc..eac6942d 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -57,7 +57,6 @@ | dockerfile | ✓ | ✓ | | | | `docker-langserver`, `docker-language-server` | | dot | ✓ | | | | | `dot-language-server` | | doxyfile | ✓ | ✓ | ✓ | ✓ | | | -| doxygen | ✓ | | | | | | | drools | | | | | | `drools-lsp` | | dtd | ✓ | | | | | | | dune | ✓ | | | | | | diff --git a/languages.toml b/languages.toml index 53e9b342..d0e6d589 100644 --- a/languages.toml +++ b/languages.toml @@ -5648,17 +5648,3 @@ comment-tokens = ["REM", "::"] name = "batch" source = { git = "https://github.com/wharflab/tree-sitter-batch", rev = "5fc5f54267ef9a78e7a5319b80e092194252aabf" } -[[language]] -name = "doxygen" -scope = "source.doxygen" -injection-regex = "doxygen" -file-types = [ - "doxygen", - "dox", - { glob = "doc.md" }, -] -indent = { tab-width = 4, unit = " " } - -[[grammar]] -name = "doxygen" -source = { git = "https://codeberg.org/maribu/tree-sitter-doxygen", rev = "26afdde765b43dc42d2c90172c238a64a93cd53caff9adce795a0e2127f4bfc9" } diff --git a/runtime/queries/c/injections.scm b/runtime/queries/c/injections.scm index 005dd121..3832c75e 100644 --- a/runtime/queries/c/injections.scm +++ b/runtime/queries/c/injections.scm @@ -4,15 +4,3 @@ ((preproc_arg) @injection.content (#set! injection.language "c") (#set! injection.include-children)) - -; Comments starting with `///`, `//!` are C++ style Doxygen comments, but -; comments starting with `////` are not. -((comment) @injection.content - (#match? @injection.content "^[\t ]*(//!|///[^/])") - (#set! injection.language "doxygen")) - -; Comments starting with `/**`, `/*!` are C style Doxygen, but comments -; starting with `/***` are not. -((comment) @injection.content - (#match? @injection.content "^[\t ]*(/\\*(!|\\*($|[^*])))") - (#set! injection.language "doxygen")) diff --git a/runtime/queries/doxygen/highlights.scm b/runtime/queries/doxygen/highlights.scm deleted file mode 100644 index b8ace8a8..00000000 --- a/runtime/queries/doxygen/highlights.scm +++ /dev/null @@ -1,53 +0,0 @@ -; block commands -(block_command - command: _ @keyword) -(block_command - ["@" "\\"] @keyword ) -(block_command - (parameter) @variable.parameter) -(block_command - (description (content) @string)) - -; inline commands -(inline_command - command: _ @keyword) -(inline_command - ["@" "\\"] @keyword ) -(inline_command - (parameter) @variable.parameter) - -; @param command -(param_attribute) @keyword.storage - -; markdown -(header) @markup.heading -(link) @markup.link.text -(link - (link_uri) @markup.link.url) -(link - (link_ref) @markup.link.url) -(email) @markup.link.url - -; styling -(bold) @markup.bold -(inline_command command: "b" - (_) @markup.bold) -(italic) @markup.italic -(inline_command command: ["e" "em" "a"] - (_) @markup.italic) -(code) @markup.raw.inline -(inline_command command: "c" - (_) @markup.raw.inline) -(code_block - (code_line) @markup.raw.block) - -; let important commands stick out -(block_command - command: _ @_cmd @keyword - (description (content) @warning) - (#any-of? @_cmd "warning" "note")) - -(block_command - command: _ @_cmd @keyword - (description (content) @markup.heading) - (#any-of? @_cmd "brief")) diff --git a/runtime/queries/doxygen/injections.scm b/runtime/queries/doxygen/injections.scm deleted file mode 100644 index 12dc9a5a..00000000 --- a/runtime/queries/doxygen/injections.scm +++ /dev/null @@ -1,9 +0,0 @@ -(markdown - (markdown_line) @injection.content - (#set! injection.language "markdown") - (#set! injection.combined)) - -(code_block - (code_language) @injection.language - (code_line) @injection.content - (#set! injection.combined))