Skip to content

Commit e04cbcf

Browse files
committed
changlog & test
1 parent 2f21a7e commit e04cbcf

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
- Fix `call_parentheses = Input` don't work in editorconfig ([#1057](https://github.com/JohnnyMorganz/StyLua/pull/1057))
910

1011
## [2.3.1] - 2025-11-01
1112

tests/inputs-editorconfig/.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ indent_size = 2
77
[global/tab-single.lua]
88
indent_style = tab
99
quote_type = single
10+
call_parentheses = input

tests/inputs-editorconfig/global/tab-single.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ local foo = {
33
}
44

55
local bar = ""
6+
7+
unpack {}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
source: tests/test_editorconfig.rs
3+
assertion_line: 45
4+
expression: "format(&contents, path.to_str().unwrap())"
5+
input_file: tests/inputs-editorconfig/global/tab-single.lua
6+
---
7+
local foo = {
8+
a = 1,
9+
}
10+
11+
local bar = ''
12+
13+
unpack {}
14+

0 commit comments

Comments
 (0)