diff options
author | Clara Hobbs | 2023-03-31 01:32:36 +0000 |
---|---|---|
committer | GitHub | 2023-03-31 01:32:36 +0000 |
commit | d284444eb402d76090ef0743d21fa51b9eee058d (patch) | |
tree | 88ad99d8129f2777b6be2c1da7030797e2480aee | |
parent | fc9229c8468d408c427281c093b703bbf1db352f (diff) |
Add indents.scm for Julia (#6490)
* Add indents.scm for Julia
* Update documentation for new indent support
-rw-r--r-- | book/src/generated/lang-support.md | 2 | ||||
-rw-r--r-- | runtime/queries/julia/indents.scm | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 003ed4a4..48667f2e 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -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` | diff --git a/runtime/queries/julia/indents.scm b/runtime/queries/julia/indents.scm new file mode 100644 index 00000000..08f55aa7 --- /dev/null +++ b/runtime/queries/julia/indents.scm @@ -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 |