Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/symbols/internal/pkg/ctags/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func NewParser(ctagsCommand string) (Parser, error) {
// }

cmd := exec.Command(ctagsCommand, "--_interactive="+opt, "--fields=*",
"--languages=Basic,C,C#,C++,Clojure,Cobol,CSS,CUDA,D,Elixir,elm,Erlang,Go,haskell,Java,JavaScript,kotlin,Lisp,Lua,MatLab,ObjectiveC,OCaml,Perl,Perl6,PHP,Protobuf,Python,R,Ruby,Rust,scala,Scheme,Sh,swift,Tcl,typescript,tsx,Verilog,Vim",
"--languages=Basic,C,C#,C++,Clojure,Cobol,CSS,CUDA,D,Elixir,elm,Erlang,Go,haskell,Java,JavaScript,kotlin,Lisp,Lua,MatLab,ObjectiveC,OCaml,Pascal,Perl,Perl6,PHP,Protobuf,Python,R,Ruby,Rust,scala,Scheme,Sh,swift,SystemVerilog,Tcl,typescript,tsx,Verilog,VHDL,Vim",
"--map-CSS=+.scss", "--map-CSS=+.less", "--map-CSS=+.sass",
)
in, err := cmd.StdinPipe()
Expand Down
16 changes: 15 additions & 1 deletion shared/src/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ function getModeFromExtension(ext: string): string | undefined {
case 're': // reason has the same language server as ocaml
return 'ocaml'

// Pascal
case 'p':
case 'pas':
case 'pp':
return 'pascal'

// Perl
case 'pl':
case 'al':
Expand Down Expand Up @@ -409,11 +415,19 @@ function getModeFromExtension(ext: string): string | undefined {
case 'vbs':
return 'vbscrip'

// Verilog
// Verilog, including SystemVerilog
case 'v':
case 'veo':
case 'sv':
case 'svh':
case 'svi':
return 'verilog'

// VHDL
case 'vhd':
case 'vhdl':
return 'vhdl'

// VIM
case 'vim':
return 'vim'
Expand Down