Skip to content

Commit

Permalink
Publish a new version.
Browse files Browse the repository at this point in the history
  • Loading branch information
GGG-KILLER committed Mar 19, 2022
1 parent aae96b3 commit d229c70
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 14 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ 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).

## Unreleased

## v0.2.9
### Added
- We've added support for LuaJIT imaginary numbers which also resulted in the following being added:
- `SyntaxFactory.Literal(Complex value)`;
Expand Down
37 changes: 29 additions & 8 deletions LATESTCHANGES.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
### Added
- Added `LuaSyntaxOptions.AcceptLuaJITNumberSuffixes`.
- Added `SyntaxFactory.Literal(ulong value)`.
- Added `SyntaxFactory.Literal(string text, ulong value)`.
- Added support for `ULL` and `LL` suffixes from LuaJIT.
- We've added support for LuaJIT imaginary numbers which also resulted in the following being added:
- `SyntaxFactory.Literal(Complex value)`;
- `SyntaxFactory.Literal(string text, Complex value)`;
- `SyntaxFactory.Literal(SyntaxTriviaList leading, string text, Complex value, SyntaxTriviaList trailing)`;
- `ObjectDisplay.FormatLiteral(Complex value, ObjectDisplayOptions options, CultureInfo? cultureInfo = null)`.

### Fixed
- Fixed `ObjectDisplay.FormatLiteral(long value, ObjectDisplayOptions options, CultureInfo? cultureInfo = null)` returning numbers in hex for longs.

### Changed
- Changed `LuaSyntaxOptions.ToString` to return `AcceptLuaJITNumberSuffixes`
- [Breaking] We've reviewed the existing `LuaSyntaxOptions` presets and the following were fixed:
- Changed the Lua 5.1 preset to accept shebangs;
- Changed the Lua 5.1 preset to not accept `if` expressions;
- Changed the Lua 5.2 preset to accept shebangs;
- Changed the Lua 5.2 preset to not accept `if` expressions;
- Changed the Lua 5.3 preset to accept shebangs;
- Changed the Lua 5.3 preset to not accept `if` expressions;
- Changed the Lua 5.3 preset to accept floor division;
- Changed the Lua 5.4 preset to accept shebangs;
- Changed the Lua 5.4 preset to not accept `if` expressions;
- Changed the Lua 5.4 preset to accept floor division;
- Changed the LuaJIT 2.0 preset to not accept empty statements;
- Changed the LuaJIT 2.0 preset to accept shebangs;
- Changed the LuaJIT 2.1 preset to not accept empty statements;
- Changed the LuaJIT 2.1 preset to accept shebangs;
- Changed the FiveM preset to accept shebangs;
- Changed the FiveM preset to not accept `if` expressions;
- Changed the FiveM preset to accept floor division;
- Changed the Luau preset to not accept hex float literals;
- Changed the Luau preset to accept shebangs;
- Changed the Luau preset to not accept bitwise operators.
- Fixed `ObjectDisplay.FormatPrimitive(object? obj, ObjectDisplayOptions options)` returning `null` for `long`s and `ulong`s.
- Fixed LuaJIT suffixes not being handled in a case-insensitive manner.
- Fixed empty type argument lists not being accepted.
2 changes: 1 addition & 1 deletion build/LibraryProject.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<PropertyGroup>
<Authors>GGG KILLER</Authors>
<Copyright>GGG KILLER © 2021</Copyright>
<Version>0.2.9-beta.5</Version>
<Version>0.2.9</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<RepositoryUrl>https://github.com/GGG-KILLER/Loretta</RepositoryUrl>
Expand Down
6 changes: 5 additions & 1 deletion src/Compilers/Lua/Portable/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1344,6 +1344,7 @@ static Loretta.CodeAnalysis.Lua.SymbolDisplay.ObjectDisplay.FormatLiteral(bool v
static Loretta.CodeAnalysis.Lua.SymbolDisplay.ObjectDisplay.FormatLiteral(double value, Loretta.CodeAnalysis.ObjectDisplayOptions options, System.Globalization.CultureInfo? cultureInfo = null) -> string!
static Loretta.CodeAnalysis.Lua.SymbolDisplay.ObjectDisplay.FormatLiteral(long value, Loretta.CodeAnalysis.ObjectDisplayOptions options, System.Globalization.CultureInfo? cultureInfo = null) -> string!
static Loretta.CodeAnalysis.Lua.SymbolDisplay.ObjectDisplay.FormatLiteral(string! value, Loretta.CodeAnalysis.ObjectDisplayOptions options) -> string!
static Loretta.CodeAnalysis.Lua.SymbolDisplay.ObjectDisplay.FormatLiteral(System.Numerics.Complex value, Loretta.CodeAnalysis.ObjectDisplayOptions options, System.Globalization.CultureInfo? cultureInfo = null) -> string!
static Loretta.CodeAnalysis.Lua.SymbolDisplay.ObjectDisplay.FormatLiteral(ulong value, Loretta.CodeAnalysis.ObjectDisplayOptions options, System.Globalization.CultureInfo? cultureInfo = null) -> string!
static Loretta.CodeAnalysis.Lua.SymbolDisplay.ObjectDisplay.FormatPrimitive(object? obj, Loretta.CodeAnalysis.ObjectDisplayOptions options) -> string?
static Loretta.CodeAnalysis.Lua.SymbolDisplay.ObjectDisplay.NilLiteral.get -> string!
Expand Down Expand Up @@ -1465,12 +1466,15 @@ static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(long value) -> Loretta.Cod
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(Loretta.CodeAnalysis.SyntaxTriviaList leading, string! text, double value, Loretta.CodeAnalysis.SyntaxTriviaList trailing) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(Loretta.CodeAnalysis.SyntaxTriviaList leading, string! text, long value, Loretta.CodeAnalysis.SyntaxTriviaList trailing) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(Loretta.CodeAnalysis.SyntaxTriviaList leading, string! text, string! value, Loretta.CodeAnalysis.SyntaxTriviaList trailing) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(Loretta.CodeAnalysis.SyntaxTriviaList leading, string! text, System.Numerics.Complex value, Loretta.CodeAnalysis.SyntaxTriviaList trailing) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(Loretta.CodeAnalysis.SyntaxTriviaList leading, string! text, ulong value, Loretta.CodeAnalysis.SyntaxTriviaList trailing) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(string! text, double value) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(string! text, long value) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(string! text, string! value) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(string! text, System.Numerics.Complex value) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(string! text, ulong value) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(string! value) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(System.Numerics.Complex value) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(ulong value) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.LiteralExpression(Loretta.CodeAnalysis.Lua.SyntaxKind kind, Loretta.CodeAnalysis.SyntaxToken token) -> Loretta.CodeAnalysis.Lua.Syntax.LiteralExpressionSyntax!
static Loretta.CodeAnalysis.Lua.SyntaxFactory.LiteralExpression(Loretta.CodeAnalysis.Lua.SyntaxKind kind) -> Loretta.CodeAnalysis.Lua.Syntax.LiteralExpressionSyntax!
Expand Down Expand Up @@ -1857,4 +1861,4 @@ virtual Loretta.CodeAnalysis.Lua.LuaSyntaxVisitor<TResult>.VisitWhileStatement(L
virtual Loretta.CodeAnalysis.Lua.LuaSyntaxWalker.VisitLeadingTrivia(Loretta.CodeAnalysis.SyntaxToken token) -> void
virtual Loretta.CodeAnalysis.Lua.LuaSyntaxWalker.VisitToken(Loretta.CodeAnalysis.SyntaxToken token) -> void
virtual Loretta.CodeAnalysis.Lua.LuaSyntaxWalker.VisitTrailingTrivia(Loretta.CodeAnalysis.SyntaxToken token) -> void
virtual Loretta.CodeAnalysis.Lua.LuaSyntaxWalker.VisitTrivia(Loretta.CodeAnalysis.SyntaxTrivia trivia) -> void
virtual Loretta.CodeAnalysis.Lua.LuaSyntaxWalker.VisitTrivia(Loretta.CodeAnalysis.SyntaxTrivia trivia) -> void
4 changes: 0 additions & 4 deletions src/Compilers/Lua/Portable/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#nullable enable
static Loretta.CodeAnalysis.Lua.SymbolDisplay.ObjectDisplay.FormatLiteral(System.Numerics.Complex value, Loretta.CodeAnalysis.ObjectDisplayOptions options, System.Globalization.CultureInfo? cultureInfo = null) -> string!
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(Loretta.CodeAnalysis.SyntaxTriviaList leading, string! text, System.Numerics.Complex value, Loretta.CodeAnalysis.SyntaxTriviaList trailing) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(string! text, System.Numerics.Complex value) -> Loretta.CodeAnalysis.SyntaxToken
static Loretta.CodeAnalysis.Lua.SyntaxFactory.Literal(System.Numerics.Complex value) -> Loretta.CodeAnalysis.SyntaxToken

0 comments on commit d229c70

Please sign in to comment.