Skip to content

Commit

Permalink
Migrate fullmoon parser to version 1.1.0 (seaofvoices#219)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeparlefrancais authored and jackTabsCode committed Oct 27, 2024
1 parent e0d86e5 commit 3c597f8
Show file tree
Hide file tree
Showing 44 changed files with 1,110 additions and 620 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

* 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))

## 0.13.1

* fix `remove_unused_variable` rule ([#192](https://github.com/seaofvoices/darklua/pull/192))
Expand Down
124 changes: 34 additions & 90 deletions Cargo.lock

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

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@ name = "darklua"
path = "src/bin.rs"

[features]
default = ["stacker"]
tracing = ["dep:tracing"]
stacker = ["full_moon/stacker"]

[dependencies]
anstyle = "1.0.6"
clap = { version = "4.5.3", features = ["derive"] }
durationfmt = "0.1.1"
elsa = "1.10.0"
env_logger = "0.11.3"
full_moon = { version = "0.19.0", features = ["roblox"] }
full_moon = { version = "1.0.0", features = ["roblox"] }
json5 = "0.4.1"
log = "0.4.21"
pathdiff = "0.2.1"
Expand Down Expand Up @@ -84,3 +82,6 @@ harness = false
[[bench]]
name = "parse_bench"
harness = false

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)'] }
Loading

0 comments on commit 3c597f8

Please sign in to comment.