Skip to content

Commit

Permalink
Merge pull request #1633 from dodona-edu/feature/new-parsers
Browse files Browse the repository at this point in the history
Add parsers for Go and Rust
  • Loading branch information
rien authored Oct 24, 2024
2 parents bb6841e + 93c041e commit 1f2ab07
Show file tree
Hide file tree
Showing 12 changed files with 4,701 additions and 2,756 deletions.
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@
[submodule "parsers/groovy"]
path = parsers/groovy
url = https://github.com/murtaza64/tree-sitter-groovy.git
[submodule "parsers/go"]
path = parsers/go
url = https://github.com/tree-sitter/tree-sitter-go.git
[submodule "parsers/rust"]
path = parsers/rust
url = https://github.com/tree-sitter/tree-sitter-rust.git
2 changes: 2 additions & 0 deletions lib/src/lib/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ export class LanguagePicker {
new ProgrammingLanguage("java", [".java"]),
new ProgrammingLanguage("javascript", [".js"]),
new ProgrammingLanguage("elm", [".elm"]),
new ProgrammingLanguage("go", [".go"]),
new ProgrammingLanguage("groovy", [".groovy", ".gvy", ".gy", ".gsh"]),
new ProgrammingLanguage("r", [".r", ".rdata", ".rds", ".rda"]),
new ProgrammingLanguage("rust", [".rs", ".rlib"]),
new ProgrammingLanguage("scala", [".scala", ".sc"]),
new ProgrammingLanguage("sql", [".sql"]),
new ProgrammingLanguage("typescript", [".ts"]),
Expand Down
Loading

0 comments on commit 1f2ab07

Please sign in to comment.