Skip to content

Commit

Permalink
feat: Add support for vim script
Browse files Browse the repository at this point in the history
  • Loading branch information
alcroito committed Jan 3, 2025
1 parent f70f289 commit edc0809
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions harper-comments/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ tree-sitter-lua = "0.0.19"
tree-sitter-bash = "0.20.0"
tree-sitter-java = "0.20.0"
tree-sitter-nix = "0.0.1"
tree-sitter-vim = { git = "https://github.com/tree-sitter-grammars/tree-sitter-vim.git", tag = "v0.3.0" }
itertools = "0.13.0"
tree-sitter-haskell = "0.15.0"

Expand Down
2 changes: 2 additions & 0 deletions harper-comments/src/comment_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ impl CommentParser {
"shellscript" => tree_sitter_bash::language(),
"java" => tree_sitter_java::language(),
"haskell" => tree_sitter_haskell::language(),
"vim" => tree_sitter_vim::language(),
_ => return None,
};

Expand Down Expand Up @@ -87,6 +88,7 @@ impl CommentParser {
"bash" => "shellscript",
"java" => "java",
"hs" => "haskell",
"vim" => "vim",
_ => return None,
})
}
Expand Down

0 comments on commit edc0809

Please sign in to comment.