Update perl parser

Upstream has made the generated parser.c much smaller too.
pull/647/head^2
Wilfred Hughes 2024-03-03 12:40:51 +07:00
parent 5d1332d5cc
commit d894a18142
2 changed files with 2 additions and 5 deletions

@ -2,7 +2,7 @@
### Parsing
Updated JavaScript, TypeScript and QML parsers.
Updated JavaScript, TypeScript, QML and Perl parsers.
Added support for Smali.

@ -47,9 +47,6 @@ impl TreeSitterParser {
.flag_if_supported("-Wno-parentheses")
// Ignore warning from tree-sitter-ruby.
.flag_if_supported("-Wno-unused-but-set-variable")
// Workaround for: https://github.com/ganezdragon/tree-sitter-perl/issues/16
// should be removed after fixed.
.flag_if_supported("-Wno-return-type")
.link_lib_modifier("+whole-archive");
for file in cpp_files {
@ -264,7 +261,7 @@ fn main() {
TreeSitterParser {
name: "tree-sitter-perl",
src_dir: "vendored_parsers/tree-sitter-perl-src",
extra_files: vec!["scanner.cc"],
extra_files: vec![],
},
TreeSitterParser {
name: "tree-sitter-php",