mirror of
https://github.com/urbit/shrub.git
synced 2024-09-11 12:25:43 +03:00
commit
86308dc378
@ -8,6 +8,7 @@ endif
|
||||
let b:did_indent = 1
|
||||
|
||||
|
||||
setlocal indentexpr=HoonIndent(v:lnum)
|
||||
setlocal nolisp
|
||||
setlocal autoindent
|
||||
|
||||
@ -22,10 +23,12 @@ function! HoonIndent(lnum)
|
||||
endif
|
||||
let prevl = substitute(getline(prevlnum),'::.*$','','')
|
||||
|
||||
if prevl =~ '\+\+\s*\w*\s*$'
|
||||
let ind = indent(prevlnum)
|
||||
if prevl =~ '++\s*\w*\s*$'
|
||||
" luslus operator
|
||||
let ind += &sw
|
||||
endif
|
||||
|
||||
return ind
|
||||
endfunction
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user