diff --git a/cmd/symbols/internal/pkg/ctags/parser.go b/cmd/symbols/internal/pkg/ctags/parser.go index ef7b52392aef..dc614fd4c4e9 100644 --- a/cmd/symbols/internal/pkg/ctags/parser.go +++ b/cmd/symbols/internal/pkg/ctags/parser.go @@ -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() diff --git a/shared/src/languages.ts b/shared/src/languages.ts index 88ae27371247..b4ccfc18fc2f 100644 --- a/shared/src/languages.ts +++ b/shared/src/languages.ts @@ -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': @@ -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'