java-parser
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "java-parser", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Java Parser in JavaScript", | ||
@@ -14,7 +14,7 @@ "main": "src/index.js", | ||
"scripts": { | ||
"test": "npm-run-all clone-samples test:execute", | ||
"test": "yarn run clone-samples && yarn run test:execute", | ||
"test:execute": "mocha \"test/**/*-spec.js\"", | ||
"clone-samples": "node ./scripts/clone-samples" | ||
}, | ||
"gitHead": "2e731c6dcec31dc9e58ec1721eef821f7fc031ee" | ||
"gitHead": "d1d1e419bdabb3eb8ba0d94cb0eb3f85166d22e8" | ||
} |
@@ -565,5 +565,24 @@ "use strict"; | ||
$.RULE("pattern", () => { | ||
$.SUBRULE($.typePattern); | ||
$.SUBRULE($.primaryPattern); | ||
$.OPTION(() => { | ||
$.CONSUME(t.AndAnd); | ||
$.SUBRULE($.binaryExpression); | ||
}); | ||
}); | ||
$.RULE("primaryPattern", () => { | ||
$.OR([ | ||
{ | ||
ALT: () => { | ||
$.CONSUME(t.LBrace); | ||
$.SUBRULE($.pattern); | ||
$.CONSUME(t.RBrace); | ||
} | ||
}, | ||
{ | ||
ALT: () => $.SUBRULE($.typePattern) | ||
} | ||
]); | ||
}); | ||
$.RULE("typePattern", () => { | ||
@@ -570,0 +589,0 @@ $.SUBRULE($.localVariableDeclaration); |
@@ -52,3 +52,3 @@ "use strict"; | ||
); | ||
FRAGMENT("EscapeSequence", "\\\\[btnfr\"'\\\\]|{{OctalEscape}}"); | ||
FRAGMENT("EscapeSequence", "\\\\[bstnfr\"'\\\\]|{{OctalEscape}}"); | ||
// Not using InputCharacter terminology there because CR and LF are already captured in EscapeSequence | ||
@@ -55,0 +55,0 @@ FRAGMENT( |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
280134
8181