Skip to content

Commit

Permalink
Rename types to luau
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampfkarren committed Jul 6, 2024
1 parent d2b9981 commit 2c046d8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0-rc.5] - 2024-07-06
### Changed
- **[BREAKING CHANGE]** The `types` module is now named `luau`.

## [1.0.0-rc.4] - 2024-07-06
### Fixed
- Fixed broken parsing of string interpolation.
Expand Down
2 changes: 1 addition & 1 deletion full-moon/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "full_moon"
version = "1.0.0-rc.4"
version = "1.0.0-rc.5"
authors = ["Kampfkarren <[email protected]>"]
description = "A lossless Lua parser"
license = "MPL-2.0"
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions full-moon/src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ mod versions;
pub use versions::*;

#[cfg(feature = "luau")]
pub mod types;
pub mod luau;
#[cfg(feature = "luau")]
use types::*;
use luau::*;

#[cfg(feature = "luau")]
mod type_visitors;
mod luau_visitors;

#[cfg(any(feature = "lua52", feature = "luajit"))]
pub mod lua52;
Expand Down
2 changes: 1 addition & 1 deletion full-moon/src/ast/parsers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,7 @@ fn expect_interpolated_string(
) -> ast::InterpolatedString {
use crate::ShortString;

use super::types::InterpolatedStringSegment;
use super::luau::InterpolatedStringSegment;

let mut segments = Vec::new();
let first_string = current.clone();
Expand Down
2 changes: 1 addition & 1 deletion full-moon/src/visitors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::ast::lua52::*;
#[cfg(feature = "lua54")]
use crate::ast::lua54::*;
#[cfg(feature = "luau")]
use crate::ast::types::*;
use crate::ast::luau::*;

macro_rules! create_visitor {
(ast: {
Expand Down

0 comments on commit 2c046d8

Please sign in to comment.