SHA256
10
0
forked from pool/StyLua

- Update to version 0.16.0:

* Fixed an anonymous function assignment local x = function() being unnecessarily indented if the function body contains a comment (#627)
  * Fixed malformed formatting when there is a newline between a return token and the expressions (#605)
  * Fixed malformed formatting of multi-assignment or multi-returns where there is a comment within the expressions list (#637)
  * Update internal parser:
    - (lua52) Support Lua 5.2 fractional hexidecimal / hexidecimal with exponents (#621)
    - (lua52) Support LuaJIT number suffixes LL/ULL/i (#621)
    - (lua52) Support \z escape sequences in strings (#613)
    - (luau) Support Luau string interpolation (#607)
  * Several optimisations applied to formatting functions to reduce time taken. Files which previously did not terminate (6MB+) now finish in reasonable time. (#591)
  * Assignments of the form local name = function will no longer hang at the equals token, and instead force parameters multiline, to reduce unnecessary indentation. (#595)
  * Unnecessary parentheses around Luau types will now be removed (#611)
  * Collapse a body containing only a goto statement when collapse_simple_statement is set (#618)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/StyLua?expand=0&rev=9
This commit is contained in:
Soc Virnyl Estela
2023-01-28 00:58:39 +00:00
committed by Git OBS Bridge
parent bb7e58fdc1
commit 71bbb8a2aa
7 changed files with 29 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37feff9a52c2355419cb5dabdc6dac15f6fbef7d91b7cd9f33bd593efe278306
size 358365

3
StyLua-0.16.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a42305c175e44c87f4d3c210e7b89d499d81053b48f4aa05bde841a3702ef07a
size 362893

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Sat Jan 28 00:55:26 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Update to version 0.16.0:
* Fixed an anonymous function assignment local x = function() being unnecessarily indented if the function body contains a comment (#627)
* Fixed malformed formatting when there is a newline between a return token and the expressions (#605)
* Fixed malformed formatting of multi-assignment or multi-returns where there is a comment within the expressions list (#637)
* Update internal parser:
- (lua52) Support Lua 5.2 fractional hexidecimal / hexidecimal with exponents (#621)
- (lua52) Support LuaJIT number suffixes LL/ULL/i (#621)
- (lua52) Support \z escape sequences in strings (#613)
- (luau) Support Luau string interpolation (#607)
* Several optimisations applied to formatting functions to reduce time taken. Files which previously did not terminate (6MB+) now finish in reasonable time. (#591)
* Assignments of the form local name = function will no longer hang at the equals token, and instead force parameters multiline, to reduce unnecessary indentation. (#595)
* Unnecessary parentheses around Luau types will now be removed (#611)
* Collapse a body containing only a goto statement when collapse_simple_statement is set (#618)
-------------------------------------------------------------------
Fri Dec 16 16:00:34 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package StyLua
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,13 @@
%define _bin_name stylua
Name: StyLua
Version: 0.15.3
Version: 0.16.0
Release: 0
Summary: Opinionated Lua code formatter
License: (Apache-2.0 OR MIT) AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (MIT OR Unlicense) AND Apache-2.0 AND MIT AND MPL-2.0 AND MPL-2.0
URL: https://github.com/JohnnyMorganz/StyLua
Source0: https://github.com/JohnnyMorganz/StyLua/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.gz
Source1: vendor.tar.xz
Source2: cargo_config
BuildRequires: cargo-packaging
BuildRequires: rust+cargo

View File

@@ -1,8 +1,8 @@
<services>
<service name="download_files" mode="disabled" />
<service name="cargo_vendor" mode="disabled">
<param name="srctar">StyLua-0.15.3.tar.gz</param>
<param name="compression">gz</param>
<param name="srctar">StyLua-0.16.0.tar.gz</param>
<param name="compression">xz</param>
<param name="update">true</param>
</service>
<service name="cargo_audit" mode="disabled" />

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7e266e9db28387f01d76b972118c408721b788d0ef81898a17db296e799ad3bc
size 16152294

3
vendor.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:af5bae412872fab5868193a0f2ff279474e5a8b7e1faf3a5bad4795def5b0905
size 15333624