Skip to content

Releases: LorettaDevs/Loretta

v0.2.14-nightly.5

11 Apr 01:12
29fbab5
Compare
Choose a tag to compare
v0.2.14-nightly.5 Pre-release
Pre-release

v0.2.14-nightly.4

01 Apr 01:10
Compare
Choose a tag to compare
v0.2.14-nightly.4 Pre-release
Pre-release

v0.2.13

31 Mar 00:51
4dc49a4
Compare
Choose a tag to compare

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.
  • Added the BacktickStringType setting to LuaSyntaxOptions 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 a SeparatedSyntaxList<TypeSyntax> into a SeparatedSyntaxList<FunctionTypeParameterSyntax> by @GGG-KILLER in #145.
  • [Breaking] SyntaxFactory.FunctionType now accepts a SeparatedSyntaxList<FunctionTypeParameterSyntax> instead of a SeparatedSyntaxList<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 of LuaSyntaxOptions.BacktickStringType by @GGG-KILLER in #138.

Removed

  • acceptHashStrings has been removed from LuaSyntaxOptions constructor and .With in favor of backtickStringType 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 when ContinueType was ContinueType.None by @GGG-KILLER in #134;
  • Fixed goto and ::label:: still being parsed when AcceptGoto was false by @GGG-KILLER in #134.
  • Fixed type not being interpreted as a contextual keyword by @GGG-KILLER in #144.

v0.2.13-nightly.21

29 Mar 09:49
d713e43
Compare
Choose a tag to compare
v0.2.13-nightly.21 Pre-release
Pre-release

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.
  • Added the BacktickStringType setting to LuaSyntaxOptions 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 a SeparatedSyntaxList<TypeSyntax> into a SeparatedSyntaxList<FunctionTypeParameterSyntax> by @GGG-KILLER in #145.
  • [Breaking] SyntaxFactory.FunctionType now accepts a SeparatedSyntaxList<FunctionTypeParameterSyntax> instead of a SeparatedSyntaxList<TypeSyntax> by @GGG-KILLER in #145.

Deprecated

  • Deprecated LuaSyntaxOptions.AcceptHashStrings in favor of LuaSyntaxOptions.BacktickStringType by @GGG-KILLER in #138.

Removed

  • acceptHashStrings has been removed from LuaSyntaxOptions constructor and .With in favor of backtickStringType 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 when ContinueType was ContinueType.None by @GGG-KILLER in #134;
  • Fixed goto and ::label:: still being parsed when AcceptGoto was false by @GGG-KILLER in #134.
  • Fixed type not being interpreted as a contextual keyword by @GGG-KILLER in #144.

v0.2.13-nightly.19

29 Mar 00:48
767eeca
Compare
Choose a tag to compare
v0.2.13-nightly.19 Pre-release
Pre-release

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.
  • Added the BacktickStringType setting to LuaSyntaxOptions 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 of LuaSyntaxOptions.BacktickStringType by @GGG-KILLER in #138.

Removed

  • acceptHashStrings has been removed from LuaSyntaxOptions constructor and .With in favor of backtickStringType 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 when ContinueType was ContinueType.None by @GGG-KILLER
    in #134;
  • Fixed goto and ::label:: still being parsed when AcceptGoto was false by @GGG-KILLER in
    #134.

v0.2.13-nightly.18

26 Mar 00:49
c396145
Compare
Choose a tag to compare
v0.2.13-nightly.18 Pre-release
Pre-release

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.
  • Added the BacktickStringType setting to LuaSyntaxOptions 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 of LuaSyntaxOptions.BacktickStringType by @GGG-KILLER in #138.

Removed

  • acceptHashStrings has been removed from LuaSyntaxOptions constructor and .With in favor of backtickStringType 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 when ContinueType was ContinueType.None by @GGG-KILLER
    in #134;
  • Fixed goto and ::label:: still being parsed when AcceptGoto was false by @GGG-KILLER in
    #134.

v0.2.13-nightly.14

22 Mar 08:22
84e281a
Compare
Choose a tag to compare
v0.2.13-nightly.14 Pre-release
Pre-release

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.
  • Added the BacktickStringType setting to LuaSyntaxOptions 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 of LuaSyntaxOptions.BacktickStringType by @GGG-KILLER in #138.

Removed

  • acceptHashStrings has been removed from LuaSyntaxOptions constructor and .With in favor of backtickStringType 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 when ContinueType was ContinueType.None by @GGG-KILLER
    in #134;
  • Fixed goto and ::label:: still being parsed when AcceptGoto was false by @GGG-KILLER in
    #134.

v0.2.13-nightly.13

19 Mar 00:52
751da21
Compare
Choose a tag to compare
v0.2.13-nightly.13 Pre-release
Pre-release

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 when ContinueType was ContinueType.None by @GGG-KILLER
    in #134;
  • Fixed goto and ::label:: still being parsed when AcceptGoto was false by @GGG-KILLER in
    #134.

v0.2.13-nightly.3

18 Mar 00:48
6a1dd91
Compare
Choose a tag to compare
v0.2.13-nightly.3 Pre-release
Pre-release

Fixed

  • Fixed LuaSyntaxOptions.AcceptInvalidEscapes not suppressing errors in cases where LuaSyntaxOptions.{AcceptWhitespaceEscape,AcceptHexEscapesInStrings,AcceptUnicodeEscape} were false 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 was NotSupported and AcceptHexFloatLiterals was false 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 into readonly structs by @GGG-KILLER in #115.

v0.2.13-nightly.2

28 Sep 00:57
5d3a1d7
Compare
Choose a tag to compare
v0.2.13-nightly.2 Pre-release
Pre-release

Fixed

  • Fixed LuaSyntaxOptions.AcceptInvalidEscapes not suppressing errors in cases where LuaSyntaxOptions.{AcceptWhitespaceEscape,AcceptHexEscapesInStrings,AcceptUnicodeEscape} were false 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 was NotSupported and AcceptHexFloatLiterals was false 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 into readonly structs by @GGG-KILLER in #115.