Skip to content

Commit

Permalink
Fix scheme indentation of syntax-rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kovisoft committed Apr 17, 2017
1 parent cc2ba8e commit 1e95b8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ftplugin/slimv.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
" slimv.vim: The Superior Lisp Interaction Mode for VIM
" Version: 0.9.14
" Last Change: 11 Apr 2017
" Last Change: 17 Apr 2017
" Maintainer: Tamas Kovacs <kovisoft at gmail dot com>
" License: This file is placed in the public domain.
" No warranty, express or implied.
Expand Down Expand Up @@ -1829,6 +1829,10 @@ function! SlimvIndentUnsafe( lnum )
if match( func, 'defn$' ) >= 0
return c + 1
endif
elseif SlimvGetFiletype() =~ '.*\(scheme\|racket\).*'
if match( func, 'syntax-rules$' ) >= 0
return c + 1
endif
else
if match( func, 'defgeneric$' ) >= 0 || match( func, 'defsystem$' ) >= 0 || match( func, 'aif$' ) >= 0
return c + 1
Expand Down

0 comments on commit 1e95b8d

Please sign in to comment.