Merge pull request #4191 from erik-krogh/v8Syntax

Approved by esbena
This commit is contained in:
CodeQL CI
2020-09-03 09:57:00 +01:00
committed by GitHub
3 changed files with 75 additions and 70 deletions

View File

@@ -161,7 +161,8 @@ public class CustomParser extends FlowParser {
} else if (options.v8Extensions() && this.type == TokenType.modulo) {
// parse V8 native
this.next();
Identifier name = this.parseIdent(true);
Identifier buildinName = this.parseIdent(true);
Identifier name = this.finishNode(new Identifier(new SourceLocation(startLoc), "%" + buildinName.getName()));
this.expect(TokenType.parenL);
List<Expression> args = this.parseExprList(TokenType.parenR, false, false, null);
CallExpression node =

View File

@@ -43,7 +43,7 @@ public class Main {
* A version identifier that should be updated every time the extractor changes in such a way that
* it may produce different tuples for the same file under the same {@link ExtractorConfig}.
*/
public static final String EXTRACTOR_VERSION = "2020-08-24";
public static final String EXTRACTOR_VERSION = "2020-09-02";
public static final Pattern NEWLINE = Pattern.compile("\n");