Skip to content

Commit 3d0a234

Browse files
Migrate fullmoon parser to version 1.1.0 (#219)
This PR update the underlying parser to its latest version, which brings new syntax like leading symbols for union and intersection types (like `& string & number`) and compound assignments using floor division (`//=`). This upgrade should also make the parser less prone to reported stack overflow issues.
1 parent 60c886e commit 3d0a234

File tree

44 files changed

+1110
-620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1110
-620
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
* migrate parser to the latest version. Reduce stack overflow issues, add support for compound assignments using floor division and leading symbols in union and intersection types ([#219](https://github.com/seaofvoices/darklua/pull/219))
6+
57
## 0.13.1
68

79
* fix `remove_unused_variable` rule ([#192](https://github.com/seaofvoices/darklua/pull/192))

Cargo.lock

+34-90
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,15 @@ name = "darklua"
2323
path = "src/bin.rs"
2424

2525
[features]
26-
default = ["stacker"]
2726
tracing = ["dep:tracing"]
28-
stacker = ["full_moon/stacker"]
2927

3028
[dependencies]
3129
anstyle = "1.0.6"
3230
clap = { version = "4.5.3", features = ["derive"] }
3331
durationfmt = "0.1.1"
3432
elsa = "1.10.0"
3533
env_logger = "0.11.3"
36-
full_moon = { version = "0.19.0", features = ["roblox"] }
34+
full_moon = { version = "1.0.0", features = ["roblox"] }
3735
json5 = "0.4.1"
3836
log = "0.4.21"
3937
pathdiff = "0.2.1"
@@ -84,3 +82,6 @@ harness = false
8482
[[bench]]
8583
name = "parse_bench"
8684
harness = false
85+
86+
[lints.rust]
87+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)'] }

0 commit comments

Comments
 (0)