Skip to content

Commit

Permalink
feat: Add support for cmake files
Browse files Browse the repository at this point in the history
  • Loading branch information
alcroito committed Jan 3, 2025
1 parent f70f289 commit 2637320
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
11 changes: 11 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 @@ -19,6 +19,7 @@ tree-sitter-javascript = "0.20.1"
tree-sitter-go = "0.20.0"
tree-sitter-c = "0.20.7"
tree-sitter-cpp = "0.20.5"
tree-sitter-cmake = "=0.4.1"
tree-sitter-ruby = "0.20.1"
tree-sitter-swift = "=0.4.0"
tree-sitter-c-sharp = "0.20.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 @@ -29,6 +29,7 @@ impl CommentParser {
"go" => tree_sitter_go::language(),
"c" => tree_sitter_c::language(),
"cpp" => tree_sitter_cpp::language(),
"cmake" => tree_sitter_cmake::language(),
"ruby" => tree_sitter_ruby::language(),
"swift" => tree_sitter_swift::language(),
"csharp" => tree_sitter_c_sharp::language(),
Expand Down Expand Up @@ -77,6 +78,7 @@ impl CommentParser {
"go" => "go",
"c" => "c",
"cpp" => "cpp",
"cmake" => "cmake",
"h" => "cpp",
"rb" => "ruby",
"swift" => "swift",
Expand Down

0 comments on commit 2637320

Please sign in to comment.