Skip to content

Commit

Permalink
Add indents.scm for Julia (helix-editor#6490)
Browse files Browse the repository at this point in the history
* Add indents.scm for Julia

* Update documentation for new indent support
  • Loading branch information
Ratfink authored and Triton171 committed Jun 18, 2023
1 parent ca2d254 commit 720ebe1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
| json || || `vscode-json-language-server` |
| jsonnet || | | `jsonnet-language-server` |
| jsx |||| `typescript-language-server` |
| julia || | | `julia` |
| julia || | | `julia` |
| kdl || | | |
| kotlin || | | `kotlin-language-server` |
| latex ||| | `texlab` |
Expand Down
16 changes: 16 additions & 0 deletions runtime/queries/julia/indents.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
(struct_definition)
(macro_definition)
(function_definition)
(compound_expression)
(let_statement)
(if_statement)
(for_statement)
(while_statement)
(do_clause)
(parameter_list)
] @indent

[
"end"
] @outdent

0 comments on commit 720ebe1

Please sign in to comment.