Skip to content

Commit

Permalink
Add verilog parser
Browse files Browse the repository at this point in the history
  • Loading branch information
rien committed Apr 12, 2024
1 parent 58f7f3a commit ca0b949
Show file tree
Hide file tree
Showing 11 changed files with 2,613 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@
[submodule "parsers/sql"]
path = parsers/sql
url = https://github.com/rien/tree-sitter-sql.git
[submodule "parsers/verilog"]
path = parsers/verilog
url = https://github.com/tree-sitter/tree-sitter-verilog.git
1 change: 1 addition & 0 deletions lib/src/lib/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export class LanguagePicker {
new ProgrammingLanguage("sql", [".sql"]),
new ProgrammingLanguage("typescript", [".ts"]),
new ProgrammingLanguage("tsx", [".tsx"]),
new ProgrammingLanguage("verilog", [".v", ".vh"]),
new CustomTokenizerLanguage("char", [".txt", ".md"], async self => {
const { CharTokenizer } = await import("./tokenizer/charTokenizer.js");
return new CharTokenizer(self);
Expand Down
Loading

0 comments on commit ca0b949

Please sign in to comment.