Updated Ruby parser

pull/315/head
Wilfred Hughes 2022-07-10 23:26:24 +07:00
parent 95c2ff0deb
commit 5c48a7fcef
2 changed files with 5 additions and 1 deletions

@ -3,7 +3,7 @@
### Parsing
Updated to the latest tree-sitter parsers for C#, Dart, Elm, Gleam,
Haskell, HCL, Java, JSON, OCaml, PHP and Python.
Haskell, HCL, Java, JSON, OCaml, PHP, Python and Ruby.
### Display

@ -39,6 +39,10 @@ impl TreeSitterParser {
.flag_if_supported("-Wno-ignored-qualifiers")
// Ignore warning from tree-sitter-html.
.flag_if_supported("-Wno-sign-compare")
// Ignore warning from tree-sitter-ruby.
.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");