From 67838aad93b508f760307a78fbf0d608bf960aea Mon Sep 17 00:00:00 2001 From: hydroper Date: Sat, 4 May 2024 13:10:48 -0300 Subject: [PATCH] Add error at concat directive --- Cargo.lock | 2 +- crates/parser/Cargo.toml | 2 +- crates/parser/parser/parser.rs | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 772255e..3c7a4fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -67,7 +67,7 @@ checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" [[package]] name = "as3_parser" -version = "1.0.13" +version = "1.0.14" dependencies = [ "bitflags", "by_address", diff --git a/crates/parser/Cargo.toml b/crates/parser/Cargo.toml index f71d808..c2883b9 100644 --- a/crates/parser/Cargo.toml +++ b/crates/parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "as3_parser" -version = "1.0.13" +version = "1.0.14" edition = "2021" authors = ["hydroper "] repository = "https://github.com/hydroper/as3parser" diff --git a/crates/parser/parser/parser.rs b/crates/parser/parser/parser.rs index 025f17c..706b458 100644 --- a/crates/parser/parser/parser.rs +++ b/crates/parser/parser/parser.rs @@ -3479,6 +3479,9 @@ impl<'input> Parser<'input> { break; } else { package_name.push(self.expect_identifier(true)); + if !self.peek(Token::Dot) { + self.non_greedy_expect(Token::Dot); + } } }