Releases: LorettaDevs/Loretta
Releases · LorettaDevs/Loretta
v0.2.14-nightly.5
v0.2.14-nightly.4
v0.2.13
Added
- Implemented support for Luau interpolated strings by @GGG-KILLER in #138.
- New diagnostics:
- LUA0033: Interpolated strings must start with the backtick character: `.
- LUA0034: Interpolated strings expressions must have a corresponding closing '}' for every opening '{'.
- LUA0035: Double braces have no meaning, did you mean to escape an opening brace with '\{'?
- LUA0036: Interpolated strings are not supported in this lua version.
- New nodes:
InterpolatedStringContentSyntax
: base node for the parts of the interpolated strings.InterpolatedStringTextSyntax
: Plain text part of the interpolated strings.InterpolationSyntax
: the expression "holes" that will be interpolated into the string.InterpolatedStringExpressionSyntax
: The expression mode for interpolated strings that contains the quotes and parts of the interpolated string.
- New diagnostics:
- Added the
BacktickStringType
setting toLuaSyntaxOptions
to switch between interpolated strings, hash strings and neither by @GGG-KILLER in #138. - Added new node
FunctionTypeParameterSyntax
that represents a parameter to a function type/signature by @GGG-KILLER in #145.
Changed
- Identifier tokens now never have a
ContextualKind
by @GGG-KILLER in #134. - [Breaking]
LuaSyntaxOptions.Luau
has been modified to enable floor division by @GGG-KILLER in #133. - [Breaking] Fixed the way invalid statement diagnostics are generated by changing them to be generated on the skipped token instead of on the full missing identifier node by @GGG-KILLER in #135.
- [Breaking]
LuaSyntaxOptions.All
now accepts interpolated strings instead of hash strings by @GGG-KILLER in #138. - [Breaking]
FunctionTypeSyntax.Parameters
(and associated method parameters) have been switched from aSeparatedSyntaxList<TypeSyntax>
into aSeparatedSyntaxList<FunctionTypeParameterSyntax>
by @GGG-KILLER in #145. - [Breaking]
SyntaxFactory.FunctionType
now accepts aSeparatedSyntaxList<FunctionTypeParameterSyntax>
instead of aSeparatedSyntaxList<TypeSyntax>
by @GGG-KILLER in #145. - [Breaking] Strings end at unescaped line break instead of generating warnings and continuing until the next quote or EOF @GGG-KILLER in #146.
Deprecated
- Deprecated
LuaSyntaxOptions.AcceptHashStrings
in favor ofLuaSyntaxOptions.BacktickStringType
by @GGG-KILLER in #138.
Removed
acceptHashStrings
has been removed fromLuaSyntaxOptions
constructor and.With
in favor ofbacktickStringType
by @GGG-KILLER in #138.- Diagnostic LUA0029 (Hash strings are not supported in this lua version) has been removed (and replaced with LUA0036) by @GGG-KILLER in #138.
- Diagnostic LUA0002 (Unescaped line break in string) has been removed by @GGG-KILLER in #146.
Fixed
- Fixed
continue
still being parsed as a keyword even whenContinueType
wasContinueType.None
by @GGG-KILLER in #134; - Fixed
goto
and::label::
still being parsed whenAcceptGoto
wasfalse
by @GGG-KILLER in #134. - Fixed
type
not being interpreted as a contextual keyword by @GGG-KILLER in #144.
v0.2.13-nightly.21
Added
- Implemented support for Luau interpolated strings by @GGG-KILLER in #138.
- New diagnostics:
- LUA0033: Interpolated strings must start with the backtick character: `.
- LUA0034: Interpolated strings expressions must have a corresponding closing '}' for every opening '{'.
- LUA0035: Double braces have no meaning, did you mean to escape an opening brace with '\{'?
- LUA0036: Interpolated strings are not supported in this lua version.
- New nodes:
InterpolatedStringContentSyntax
: base node for the parts of the interpolated strings.InterpolatedStringTextSyntax
: Plain text part of the interpolated strings.InterpolationSyntax
: the expression "holes" that will be interpolated into the string.InterpolatedStringExpressionSyntax
: The expression mode for interpolated strings that contains the quotes and parts of the interpolated string.
- New diagnostics:
- Added the
BacktickStringType
setting toLuaSyntaxOptions
to switch between interpolated strings, hash strings and neither by @GGG-KILLER in #138. - Added new node
FunctionTypeParameterSyntax
that represents a parameter to a function type/signature by @GGG-KILLER in #145.
Changed
- Identifier tokens now never have a
ContextualKind
by @GGG-KILLER in #134. - [Breaking]
LuaSyntaxOptions.Luau
has been modified to enable floor division by @GGG-KILLER in #133. - [Breaking] Fixed the way invalid statement diagnostics are generated by changing them to be generated on the skipped token instead of on the full missing identifier node by @GGG-KILLER in #135.
- [Breaking]
LuaSyntaxOptions.All
now accepts interpolated strings instead of hash strings by @GGG-KILLER in #138. - [Breaking]
FunctionTypeSyntax.Parameters
(and associated method parameters) have been switched from aSeparatedSyntaxList<TypeSyntax>
into aSeparatedSyntaxList<FunctionTypeParameterSyntax>
by @GGG-KILLER in #145. - [Breaking]
SyntaxFactory.FunctionType
now accepts aSeparatedSyntaxList<FunctionTypeParameterSyntax>
instead of aSeparatedSyntaxList<TypeSyntax>
by @GGG-KILLER in #145.
Deprecated
- Deprecated
LuaSyntaxOptions.AcceptHashStrings
in favor ofLuaSyntaxOptions.BacktickStringType
by @GGG-KILLER in #138.
Removed
acceptHashStrings
has been removed fromLuaSyntaxOptions
constructor and.With
in favor ofbacktickStringType
by @GGG-KILLER in #138.- Diagnostic LUA0029 (Hash strings are not supported in this lua version) has been removed (and replaced with LUA0036) by @GGG-KILLER in #138.
Fixed
- Fixed
continue
still being parsed as a keyword even whenContinueType
wasContinueType.None
by @GGG-KILLER in #134; - Fixed
goto
and::label::
still being parsed whenAcceptGoto
wasfalse
by @GGG-KILLER in #134. - Fixed
type
not being interpreted as a contextual keyword by @GGG-KILLER in #144.
v0.2.13-nightly.19
Added
- Implemented support for Luau interpolated strings by @GGG-KILLER in #138.
- New diagnostics:
- LUA0033: Interpolated strings must start with the backtick character: `.
- LUA0034: Interpolated strings expressions must have a corresponding closing '}' for every opening '{'.
- LUA0035: Double braces have no meaning, did you mean to escape an opening brace with '\{'?
- LUA0036: Interpolated strings are not supported in this lua version.
- New nodes:
InterpolatedStringContentSyntax
: base node for the parts of the interpolated strings.InterpolatedStringTextSyntax
: Plain text part of the interpolated strings.InterpolationSyntax
: the expression "holes" that will be interpolated into the string.InterpolatedStringExpressionSyntax
: The expression mode for interpolated strings that contains the quotes and parts of the interpolated string.
- New diagnostics:
- Added the
BacktickStringType
setting toLuaSyntaxOptions
to switch between interpolated strings, hash strings and neither by @GGG-KILLER in #138.
Changed
- Identifier tokens now never have a
ContextualKind
by @GGG-KILLER in #134. - [Breaking]
LuaSyntaxOptions.Luau
has been modified to enable floor division by @GGG-KILLER in #133. - [Breaking] Fixed the way invalid statement diagnostics are generated by changing them to be generated on the
skipped token instead of on the full missing identifier node by @GGG-KILLER in
#135. - [Breaking]
LuaSyntaxOptions.All
now accepts interpolated strings instead of hash strings by @GGG-KILLER in #138.
Deprecated
- Deprecated
LuaSyntaxOptions.AcceptHashStrings
in favor ofLuaSyntaxOptions.BacktickStringType
by @GGG-KILLER in #138.
Removed
acceptHashStrings
has been removed fromLuaSyntaxOptions
constructor and.With
in favor ofbacktickStringType
by @GGG-KILLER in #138.- Diagnostic LUA0029 (Hash strings are not supported in this lua version) has been removed (and replaced with LUA0036) by @GGG-KILLER in #138.
Fixed
- Fixed
continue
still being parsed as a keyword even whenContinueType
wasContinueType.None
by @GGG-KILLER
in #134; - Fixed
goto
and::label::
still being parsed whenAcceptGoto
wasfalse
by @GGG-KILLER in
#134.
v0.2.13-nightly.18
Added
- Implemented support for Luau interpolated strings by @GGG-KILLER in #138.
- New diagnostics:
- LUA0033: Interpolated strings must start with the backtick character: `.
- LUA0034: Interpolated strings expressions must have a corresponding closing '}' for every opening '{'.
- LUA0035: Double braces have no meaning, did you mean to escape an opening brace with '\{'?
- LUA0036: Interpolated strings are not supported in this lua version.
- New nodes:
InterpolatedStringContentSyntax
: base node for the parts of the interpolated strings.InterpolatedStringTextSyntax
: Plain text part of the interpolated strings.InterpolationSyntax
: the expression "holes" that will be interpolated into the string.InterpolatedStringExpressionSyntax
: The expression mode for interpolated strings that contains the quotes and parts of the interpolated string.
- New diagnostics:
- Added the
BacktickStringType
setting toLuaSyntaxOptions
to switch between interpolated strings, hash strings and neither by @GGG-KILLER in #138.
Changed
- Identifier tokens now never have a
ContextualKind
by @GGG-KILLER in #134. - [Breaking]
LuaSyntaxOptions.Luau
has been modified to enable floor division by @GGG-KILLER in #133. - [Breaking] Fixed the way invalid statement diagnostics are generated by changing them to be generated on the
skipped token instead of on the full missing identifier node by @GGG-KILLER in
#135. - [Breaking]
LuaSyntaxOptions.All
now accepts interpolated strings instead of hash strings by @GGG-KILLER in #138.
Deprecated
- Deprecated
LuaSyntaxOptions.AcceptHashStrings
in favor ofLuaSyntaxOptions.BacktickStringType
by @GGG-KILLER in #138.
Removed
acceptHashStrings
has been removed fromLuaSyntaxOptions
constructor and.With
in favor ofbacktickStringType
by @GGG-KILLER in #138.- Diagnostic LUA0029 (Hash strings are not supported in this lua version) has been removed (and replaced with LUA0036) by @GGG-KILLER in #138.
Fixed
- Fixed
continue
still being parsed as a keyword even whenContinueType
wasContinueType.None
by @GGG-KILLER
in #134; - Fixed
goto
and::label::
still being parsed whenAcceptGoto
wasfalse
by @GGG-KILLER in
#134.
v0.2.13-nightly.14
Added
- Implemented support for Luau interpolated strings by @GGG-KILLER in #138.
- New diagnostics:
- LUA0033: Interpolated strings must start with the backtick character: `.
- LUA0034: Interpolated strings expressions must have a corresponding closing '}' for every opening '{'.
- LUA0035: Double braces have no meaning, did you mean to escape an opening brace with '\{'?
- LUA0036: Interpolated strings are not supported in this lua version.
- New nodes:
InterpolatedStringContentSyntax
: base node for the parts of the interpolated strings.InterpolatedStringTextSyntax
: Plain text part of the interpolated strings.InterpolationSyntax
: the expression "holes" that will be interpolated into the string.InterpolatedStringExpressionSyntax
: The expression mode for interpolated strings that contains the quotes and parts of the interpolated string.
- New diagnostics:
- Added the
BacktickStringType
setting toLuaSyntaxOptions
to switch between interpolated strings, hash strings and neither by @GGG-KILLER in #138.
Changed
- Identifier tokens now never have a
ContextualKind
by @GGG-KILLER in #134. - [Breaking]
LuaSyntaxOptions.Luau
has been modified to enable floor division by @GGG-KILLER in #133. - [Breaking] Fixed the way invalid statement diagnostics are generated by changing them to be generated on the
skipped token instead of on the full missing identifier node by @GGG-KILLER in
#135. - [Breaking]
LuaSyntaxOptions.All
now accepts interpolated strings instead of hash strings by @GGG-KILLER in #138.
Deprecated
- Deprecated
LuaSyntaxOptions.AcceptHashStrings
in favor ofLuaSyntaxOptions.BacktickStringType
by @GGG-KILLER in #138.
Removed
acceptHashStrings
has been removed fromLuaSyntaxOptions
constructor and.With
in favor ofbacktickStringType
by @GGG-KILLER in #138.- Diagnostic LUA0029 (Hash strings are not supported in this lua version) has been removed (and replaced with LUA0036) by @GGG-KILLER in #138.
Fixed
- Fixed
continue
still being parsed as a keyword even whenContinueType
wasContinueType.None
by @GGG-KILLER
in #134; - Fixed
goto
and::label::
still being parsed whenAcceptGoto
wasfalse
by @GGG-KILLER in
#134.
v0.2.13-nightly.13
Changed
- Identifier tokens now never have a
ContextualKind
by @GGG-KILLER in #134. - [Breaking]
LuaSyntaxOptions.Luau
has been modified to enable floor division by @GGG-KILLER in #133. - [Breaking] Fixed the way invalid statement diagnostics are generated by changing them to be generated on the
skipped token instead of on the full missing identifier node by @GGG-KILLER in
#135.
Fixed
- Fixed
continue
still being parsed as a keyword even whenContinueType
wasContinueType.None
by @GGG-KILLER
in #134; - Fixed
goto
and::label::
still being parsed whenAcceptGoto
wasfalse
by @GGG-KILLER in
#134.
v0.2.13-nightly.3
Fixed
- Fixed
LuaSyntaxOptions.AcceptInvalidEscapes
not suppressing errors in cases whereLuaSyntaxOptions.{AcceptWhitespaceEscape,AcceptHexEscapesInStrings,AcceptUnicodeEscape}
werefalse
by @TheGreatSageEqualToHeaven in #116. - Fixed single line comments not getting a line break added after them in
NormalizeWhitespace
by @GGG-KILLER in #118. - Fixed warnings being generated for hex numbers on Lua 5.1, Lua 5.2 and other presets where
HexIntegerFormat
wasNotSupported
andAcceptHexFloatLiterals
wasfalse
by @GGG-KILLER. - Fixed the
SyntaxNormalizer
turning nested negation expressions into comments by @GGG-KILLER.
Removed
- Removed
LanguageNames.{CSharp,FSharp,VisualBasic}
by @GGG-KILLER in #115.
Changed
- The
Loretta.CodeAnalysis.FileLinePositionSpan
has been made intoreadonly struct
s by @GGG-KILLER in #115.
v0.2.13-nightly.2
Fixed
- Fixed
LuaSyntaxOptions.AcceptInvalidEscapes
not suppressing errors in cases whereLuaSyntaxOptions.{AcceptWhitespaceEscape,AcceptHexEscapesInStrings,AcceptUnicodeEscape}
werefalse
by @TheGreatSageEqualToHeaven in #116. - Fixed single line comments not getting a line break added after them in
NormalizeWhitespace
by @GGG-KILLER in #118. - Fixed warnings being generated for hex numbers on Lua 5.1, Lua 5.2 and other presets where
HexIntegerFormat
wasNotSupported
andAcceptHexFloatLiterals
wasfalse
by @GGG-KILLER. - Fixed the
SyntaxNormalizer
turning nested negation expressions into comments by @GGG-KILLER.
Removed
- Removed
LanguageNames.{CSharp,FSharp,VisualBasic}
by @GGG-KILLER in #115.
Changed
- The
Loretta.CodeAnalysis.FileLinePositionSpan
has been made intoreadonly struct
s by @GGG-KILLER in #115.