summaryrefslogtreecommitdiffstats
path: root/queries/julia
diff options
context:
space:
mode:
authorRonan Arraes Jardim Chagas <ronisbr@gmail.com>2023-10-28 10:23:50 -0300
committerChristian Clason <c.clason@uni-graz.at>2023-10-29 01:37:31 +0200
commit639c22c52ca2c76c6016de746836eca20145ea8c (patch)
tree0f1c58f1b961e00011e487da32a5168df835ffc1 /queries/julia
parentUpdate parsers: gitattributes, t32, wing (diff)
downloadnvim-treesitter-639c22c52ca2c76c6016de746836eca20145ea8c.tar
nvim-treesitter-639c22c52ca2c76c6016de746836eca20145ea8c.tar.gz
nvim-treesitter-639c22c52ca2c76c6016de746836eca20145ea8c.tar.bz2
nvim-treesitter-639c22c52ca2c76c6016de746836eca20145ea8c.tar.lz
nvim-treesitter-639c22c52ca2c76c6016de746836eca20145ea8c.tar.xz
nvim-treesitter-639c22c52ca2c76c6016de746836eca20145ea8c.tar.zst
nvim-treesitter-639c22c52ca2c76c6016de746836eca20145ea8c.zip
Improve indentation in Julia language
This commit improves the indentation in the function declaration, function call, and in the assignment expressions.
Diffstat (limited to 'queries/julia')
-rw-r--r--queries/julia/indents.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/queries/julia/indents.scm b/queries/julia/indents.scm
index d854b937b..7e9794233 100644
--- a/queries/julia/indents.scm
+++ b/queries/julia/indents.scm
@@ -15,8 +15,8 @@
(assignment)
(for_binding)
- (binary_expression)
(call_expression)
+ (parenthesized_expression)
(tuple_expression)
(comprehension_expression)
@@ -48,3 +48,10 @@
(block_comment)
] @indent.ignore
+((argument_list) @indent.align
+ (#set! indent.open_delimiter "(")
+ (#set! indent.close_delimiter ")"))
+
+((parameter_list) @indent.align
+ (#set! indent.open_delimiter "(")
+ (#set! indent.close_delimiter ")"))