You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement comprehensive indentation configuration for Julia
This commit adds both regex-based and Tree-sitter-based indentation
rules to provide a smooth editing experience for Julia coding in Zed.
Motivation - this didn't work properly before:
```julia
if x
elseif y
else # <- wouldn't auto-outdent
end
```
Changes:
- Add `increase_indent_pattern` for Julia block keywords
- Add `decrease_indent_patterns` with context-aware `valid_after` rules
- Add `@start.suffix` captures in indents.scm for tracking block beginnings
(required for `decrease_indent_patterns` to be functional)
- Update `@outdent` patterns to work with specific keywords
The dual approach (regex + Tree-sitter) is intentional, following Zed's
design pattern established for Python (see zed-industries/zed#29625,
zed-industries/zed#33370).
0 commit comments