Skip to content

feat: more languages supported #79

Open
3 of 11 issues completed
Open

Description

@elijah-potter

I'd like to expand the number of languages supported for comment checking. There are a number of additional considerations for structured comments (like JavaDoc), but some should be pretty straightforward.

Running list:

  • Bash
  • YAML
  • HTML
  • Java
  • Groovy
  • Git commit buffers (filetype gitcommit)
  • PowerShell

In addition to adding language parsers to the tree-sitter code, we would also need to open pull requests for nvim-lspconfig, mason and fix harper-ls to announce support for the capability.

Feel free to add suggestions to this list.

Activity

  1. self-assigned this
    on Jul 6, 2024
  2. elijah-potter commented on Aug 9, 2024

    @elijah-potter
    MemberAuthor

    Alright. At the time of writing, we've got JavaDoc, HTML, and Bash supported, as well as gitcommit buffers.

  3. mostafaqanbaryan commented on Aug 11, 2024

    @mostafaqanbaryan

    If you could add php to the list as well, it would be great

  4. Vinzent03 commented on Sep 3, 2024

    @Vinzent03
    Contributor

    Adding dart would be great as well.

  5. kai-tub commented on Sep 5, 2024

    @kai-tub

    Hey, markdown support seems pretty advanced. 👍
    But are there plans to also support other markup languages, such as djot, with the same level of functionality?
    Or will only markdown be seen as a first-class citizen in the near future?

    Either way, I am thrilled about the project and being able to use a solid spell-checker LSP 🥳 :

    PS: Are you planning on adding a sponsoring option?

  6. elijah-potter commented on Jan 3, 2025

    @elijah-potter
    MemberAuthor

    Coming back to this issue after a solid period of stagnation, to give an update.

    #332 has added Haskell support, #354 is adding Vimscript, and #353 is adding cmake support. These will all be considered "rough" until someone has the time to go in and touch them up (which is a good first issue to tackle, if anyone is interested).

    I plan on adding PHP and potentially PowerShell later today.

    But are there plans to also support other markup languages, such as djot, with the same level of functionality?

    We've got an open PR for Typst support: #302. I do not personally have time in the near future to add similar levels of polish to a new language as the Markdown parser. That said, we are entirely open to PRs on the topic, and I can answer any questions you may have. I'm not sure how complex djot is, but it may be as simple as importing the right Treesitter parser.

    Either way, I am thrilled about the project and being able to use a solid spell-checker LSP 🥳

    That's great to hear! I aim to please.

    PS: Are you planning on adding a sponsoring option?

    We might be a little past that.

  7. krupan commented on Feb 5, 2025

    @krupan

    Emacs org-mode support would be rad

  8. hippietrail commented on Feb 6, 2025

    @hippietrail
    Collaborator

    I just had a peep at the supported languages and here are some I note to be missing:

    • Assembly
    • Elixir
    • Kotlin
    • Odin
    • Zig

    I've never used Elixir. Kotlin probably requires the least effort, possibly none. Zig and Odin from memory both also just have C-like comments. Assembly uses ; to introduce comments, at least the common ones.

  9. jkprcl commented on Feb 6, 2025

    @jkprcl

    Glad to see PowerShell is on the running list!

  10. ficd0 commented on Feb 20, 2025

    @ficd0
    Contributor

    mail support isn't great right now. Since it uses the PlainEnglish parser, it also applies rules to the headers and metadata of the file which isn't ideal. I'm working on a tree-sitter parser for the mail format atm, I'm wondering if it would be possible to only apply harper's rules to contents of the (body) node, or something like that?

  11. elijah-potter commented on Feb 20, 2025

    @elijah-potter
    MemberAuthor

    Yeah! Using the masker in harper-tree-sitter you can select by node label.

  12. ficd0 commented on Feb 20, 2025

    @ficd0
    Contributor

    sounds great. I will give that a shot when I'm able.

  13. funnes commented on Feb 22, 2025

    @funnes

    It would be nice to have support for jujutsu commits just like git-commit.

    update: implemented in #2082

  14. ficd0 commented on Feb 22, 2025

    @ficd0
    Contributor

    Re: a discussion in the discord, we could look into supporting Quatro and RMarkdown. They're both extensions of markdown. RMarkdown has a very solid tree-sitter parser available. Quatro has one too but I haven't been able to verify if it still works. Using these parser and the Masker we should be able to support them. For the time being, they could be treated the same as regular Markdown files; after a brief test, this generally works fine at the cost of some false positives on certain syntax elements.

  15. 64 remaining items

  16. Manuallly-Installed commented on May 22, 2026

    @Manuallly-Installed

    I would love it if suport for PureBasic was added.

  17. jtdowney commented on Jul 2, 2026

    @jtdowney

    Commenting to add that it would be great to see Gleam support, tree sitter is at https://github.com/gleam-lang/tree-sitter-gleam

  18. exiquio commented on Jul 14, 2026

    @exiquio

    I just had a peep at the supported languages and here are some I note to be missing:

    • Assembly
    • Elixir
    • Kotlin
    • Odin
    • Zig

    I've never used Elixir. Kotlin probably requires the least effort, possibly none. Zig and Odin from memory both also just have C-like comments. Assembly uses ; to introduce comments, at least the common ones.

    Elixir would be nice to have.

  19. hippietrail commented on Jul 14, 2026

    @hippietrail
    Collaborator

    I've never used Elixir. Kotlin probably requires the least effort, possibly none. Zig and Odin from memory both also just have C-like comments. Assembly uses ; to introduce comments, at least the common ones.

    Elixir would be nice to have.

    There's actually an official Tree-sitter grammar for it too: https://github.com/elixir-lang/tree-sitter-elixir

  20. radioactive-exe commented on Sep 9, 2026

    @radioactive-exe

    I'm a bit surprised this hasn't been brought up yet, but if there could somehow be SQL support (or at least some of its dialects like T-SQL or Postgres), it would be wonderful!

  21. dccabanas commented on Sep 18, 2026

    @dccabanas

    Hey, all. It would be cool to have support for Julia :D

  22. grantlemons commented on Sep 18, 2026

    @grantlemons
    Collaborator

    Hey, all. It would be cool to have support for Julia :D

    Tree sitter parser: https://github.com/tree-sitter/tree-sitter-julia

  23. suchverynice commented on Sep 26, 2026

    @suchverynice

    Hihi, please consider adding support for Sass/SCSS. Much appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestharper-lsRelated to the Harper Language Server

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions