src/rbs/parser.js in prettier-1.5.3 vs src/rbs/parser.js in prettier-1.5.4
- old
+ new
@@ -2,11 +2,11 @@
// This function is responsible for taking an input string of text and returning
// to prettier a JavaScript object that is the equivalent AST that represents
// the code stored in that string. We accomplish this by spawning a new Ruby
// process of parser.rb and reading JSON off STDOUT.
-function parse(text, _parsers, _opts) {
- return parseSync("rbs", text);
+function parse(text, _parsers, opts) {
+ return parseSync("rbs", text, opts);
}
const pragmaPattern = /#\s*@(prettier|format)/;
// This function handles checking whether or not the source string has the