Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to new full-moon version v1.1.1 #854

Merged
merged 25 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5f13412
Update to new full-moon version
JohnnyMorganz Jan 27, 2024
69defcf
simplify err message
JohnnyMorganz Jan 27, 2024
239eb8b
fix token
JohnnyMorganz Jan 27, 2024
f4bcd72
Support Lua version customisation
JohnnyMorganz Jan 27, 2024
6bb51d6
compile full moon with release optimisations
JohnnyMorganz Jan 27, 2024
9c32663
Update to Boxed anonymous function
JohnnyMorganz Jun 9, 2024
1907c5d
Add proper handling for shebang
JohnnyMorganz Jun 9, 2024
8c3cf4a
Set default lua version to all features, to make it easier to get sta…
JohnnyMorganz Jun 9, 2024
8789b31
Handle left associativity of type unions / intersections
JohnnyMorganz Jun 9, 2024
fc742ad
Update callback hanging snapshot
JohnnyMorganz Jun 9, 2024
897b7f7
Support LuaJIT as a separate syntax option
JohnnyMorganz Jun 9, 2024
4d7d972
Rename config option from `lua_version` to `syntax`
JohnnyMorganz Jun 9, 2024
87f5afe
Fix tests and re-enable large example in debug mode
JohnnyMorganz Jun 22, 2024
33673cd
Use released full moon v1.1.0
JohnnyMorganz Oct 26, 2024
448fc73
Merge branch 'main' of https://github.com/JohnnyMorganz/StyLua into u…
JohnnyMorganz Oct 26, 2024
1913e70
Add command line option to configure syntax and update changelog
JohnnyMorganz Oct 26, 2024
bf8a238
Merge branch 'main' of https://github.com/JohnnyMorganz/StyLua into u…
JohnnyMorganz Nov 16, 2024
43ca46c
Bump full-moon to 1.1.1
JohnnyMorganz Nov 16, 2024
3ccdb30
Fix compilation for luau
JohnnyMorganz Nov 16, 2024
cbbb13d
Handle access modifier in type array and tables
JohnnyMorganz Nov 16, 2024
5b43ad5
Handle new type info and union set up
JohnnyMorganz Nov 16, 2024
00a6157
Cleanup
JohnnyMorganz Nov 16, 2024
f5aeb9e
Fix verify_ast for luajit
JohnnyMorganz Nov 16, 2024
c8de583
Fix wasm build on CI
JohnnyMorganz Nov 16, 2024
90efe0e
Update changelog about luajit
JohnnyMorganz Nov 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ jobs:
- name: Test (Luau)
run: cargo test --features luau

# TODO: ideally this step isn't needed, but we have to gate some tests behind release mode
# we do this to ensure they still run in CI
# https://github.com/Kampfkarren/full-moon/issues/140
test_luau_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test (Luau - Release mode)
run: cargo test --features luau --release

test_lua52:
runs-on: ubuntu-latest
steps:
Expand All @@ -52,14 +42,21 @@ jobs:
- name: Test (Lua 5.4)
run: cargo test --features lua54

test_luajit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test (LuaJIT)
run: cargo test --features luajit

test_wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test Build (wasm)
run: |
rustup target add wasm32-unknown-unknown
cargo check --target wasm32-unknown-unknown
cargo check --target wasm32-unknown-unknown --features luau,lua52,lua53,lua54,luajit

test_wasm_build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
sudo apt install ${{ matrix.linker }}

- name: Build Binary (All features)
run: cargo build --verbose --locked --release --features lua52,lua53,lua54,luau --target ${{ matrix.cargo-target }}
run: cargo build --verbose --locked --release --features lua52,lua53,lua54,luau,luajit --target ${{ matrix.cargo-target }}
env:
CARGO_TARGET_DIR: output

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added runtime syntax configuration option `syntax` to help handle ambiguous syntax. By default, StyLua builds and runs with a parser to handle all Lua versions. However, the syntax of some Lua versions conflict with eachother: most notably, Lua 5.2+ goto label syntax `::label::` and Luau type assertion operator `::`. This option allows choosing what syntax to parse, to handle these conflicts. ([#407](https://github.com/JohnnyMorganz/StyLua/issues/407))
- Added configuration option `space_after_function_names` to specify whether to include a space between a function name and parentheses ([#839](https://github.com/JohnnyMorganz/StyLua/issues/839))

### Changed

- Update internal Lua parser version (full-moon) to v1.1.0. This includes parser performance improvements. ([#854](https://github.com/JohnnyMorganz/StyLua/issues/854))
- LuaJIT is now separated from Lua52, and is available in its own feature and syntax flag

### Fixed

- Fixed formatting of method call chain when there is a comment between the colon token `:` and the function name ([#890](https://github.com/JohnnyMorganz/StyLua/issues/890))
Expand Down
Loading
Loading