Skip to content

Commit

Permalink
Allow more at concat directive
Browse files Browse the repository at this point in the history
  • Loading branch information
hydroper committed May 4, 2024
1 parent 67838aa commit afe6f0f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "as3_parser"
version = "1.0.14"
version = "1.0.15"
edition = "2021"
authors = ["hydroper <[email protected]>"]
repository = "https://github.com/hydroper/as3parser"
Expand Down
7 changes: 5 additions & 2 deletions crates/parser/parser/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3478,9 +3478,12 @@ impl<'input> Parser<'input> {
self.next();
break;
} else {
package_name.push(self.expect_identifier(true));
let id1 = self.expect_identifier(true);
if !self.peek(Token::Dot) {
self.non_greedy_expect(Token::Dot);
import_specifier = ImportSpecifier::Identifier(id1.clone());
break;
} else {
package_name.push(id1.clone());
}
}
}
Expand Down
1 change: 0 additions & 1 deletion crates/parser/tree/package_concat_directive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use crate::ns::*;
use serde::{Serialize, Deserialize};

/// The `public += ns.*;` directive.
/// Its `ImportSpecifier` is either `Wildcard` or `Recursive`.
#[derive(Clone, Serialize, Deserialize)]
pub struct PackageConcatDirective {
pub location: Location,
Expand Down

0 comments on commit afe6f0f

Please sign in to comment.