mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Improve curly expression alignment
This commit is contained in:
parent
3d6c0af936
commit
a741b5dd0d
2 changed files with 19 additions and 1 deletions
|
|
@ -22,7 +22,6 @@
|
|||
(comprehension_expression)
|
||||
(matrix_expression)
|
||||
(vector_expression)
|
||||
(curly_expression)
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
|
|
@ -55,3 +54,7 @@
|
|||
((parameter_list) @indent.align
|
||||
(#set! indent.open_delimiter "(")
|
||||
(#set! indent.close_delimiter ")"))
|
||||
|
||||
((curly_expression) @indent.align
|
||||
(#set! indent.open_delimiter "{")
|
||||
(#set! indent.close_delimiter "}"))
|
||||
|
|
|
|||
15
tests/indent/julia/curly_expression.jl
Normal file
15
tests/indent/julia/curly_expression.jl
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
function test(a::Union{Number,
|
||||
String,
|
||||
Nothing},
|
||||
b::Number)
|
||||
end
|
||||
|
||||
function test(
|
||||
a::Union{
|
||||
Number,
|
||||
String,
|
||||
Nothing
|
||||
},
|
||||
b::Number
|
||||
)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue