Skip to content

Commit 13cdc60

Browse files
authored
Add "always" docs to call_arg_parenthesis
1 parent 8655934 commit 13cdc60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/format_config_EN.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ When quote_style = single or double, unescaped target quote types are not format
7373
### call_arg_parentheses
7474

7575
This option means that if the parameter in the call expression has only a single-string literal constant or a table expression, you can consider keeping or removing the parentheses.
76-
The optional value for this option is keep/remove/remove_table_only/remove_string_only and the default value is keep.
76+
The optional value for this option is keep/remove/remove_table_only/remove_string_only/always and the default value is keep.
7777

7878
```lua
7979
f("wfwefw")({ e1231313 })("1e1231313131")
@@ -91,6 +91,8 @@ f "wfwefw" { e1231313 } "1e1231313131"
9191
f("wfwefw") { e1231313 } ("1e1231313131")
9292
--remove_string_only
9393
f "wfwefw" ({ e1231313 }) "1e1231313131"
94+
--always
95+
f("wfwefw")({ e1231313 })("1e1231313131") -- enforce parentheses
9496
```
9597

9698
### continuation_indent

0 commit comments

Comments
 (0)