-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aae96b3
commit d229c70
Showing
5 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |