forked from pool/StyLua
Accepting request 1127596 from devel:languages:lua
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/1127596 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/StyLua?expand=0&rev=13
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:25a81ffaba54479ca7ddaa6ebb7611d60f8849004b5d6c50ec1b31edb2295c8e
|
||||
size 377388
|
3
StyLua-0.19.0.tar.gz
Normal file
3
StyLua-0.19.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b227f41250925ef4aa4403cea52fbc144d1a78576eb0181b6d477ca7cf31e6bf
|
||||
size 386320
|
@@ -1,3 +1,39 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 12 13:56:19 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
||||
|
||||
- Update to version 0.19.0:
|
||||
|
||||
### Added
|
||||
|
||||
- Added flag `--respect-ignores`. By default, files explicitly passed
|
||||
to stylua (e.g. `stylua foo.lua`) will always be formatted, regardless of
|
||||
whether the file is ignored. Enabling this flag will consider `.styluaignore`
|
||||
or glob matches before formatting the file.
|
||||
|
||||
- Note: for backwards compatibility reasons, formatting via stdin always
|
||||
respects ignores. This behaviour will change in the next major release
|
||||
|
||||
### Changed
|
||||
|
||||
- Updated parser crate with following changes:
|
||||
|
||||
- Support Luau floor division (`//`)
|
||||
- Fix Luau string interpolation parsing
|
||||
- Fix Luau `\z` escape parsing
|
||||
|
||||
- Simplified access and modification patterns for StyLua configuration. You
|
||||
can now access the properties directly
|
||||
|
||||
- **Deprecated:** the old access patterns of `.property()` and
|
||||
`.with_property()` are now deprecated
|
||||
- **Breaking Change (WASM):** due to JS/TS lack of differentiation
|
||||
between `.property` / `.property()` implementation, the `.property()`
|
||||
functions were removed from WASM output.
|
||||
|
||||
- Multiline comments before commas will now remain in place and not move
|
||||
to after the comma. This is to support type-assertions-via-comments that
|
||||
is commonly used by some language servers.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 9 13:14:58 UTC 2023 - Soc Virnyl Estela <uncomfy+openbuildservice@uncomfyhalomacro.pl>
|
||||
|
||||
|
@@ -18,14 +18,13 @@
|
||||
|
||||
%define _bin_name stylua
|
||||
Name: StyLua
|
||||
Version: 0.18.2
|
||||
Version: 0.19.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.zst
|
||||
Source2: cargo_config
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: rust+cargo
|
||||
BuildRequires: zstd
|
||||
@@ -39,7 +38,7 @@ consistent code style.
|
||||
%prep
|
||||
%setup -q -a1
|
||||
mkdir -p .cargo
|
||||
cp %{SOURCE2} .cargo/config.toml
|
||||
cp cargo_config .cargo/config.toml
|
||||
|
||||
%build
|
||||
%{cargo_build} --all-features
|
||||
|
@@ -1,5 +0,0 @@
|
||||
[source.crates-io]
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "vendor"
|
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:532a56c706e3c958b827576d84958ecac337958e8bb1b196a53a40b880a04a18
|
||||
size 15050449
|
||||
oid sha256:53311404fb07526a7ae14044047abcf9afcf1a823f93ea6c003a12e80396c39d
|
||||
size 19381631
|
||||
|
Reference in New Issue
Block a user