Changeset 4302 for trunk

Show
Ignore:
Timestamp:
06/04/08 04:59:59 (3 months ago)
Author:
pmoura
Message:

Fixed another auto-indentation bug when opening and closing a conditional block in a single line in the last goal a predicate clause body.

Location:
trunk/wenv/vim
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wenv/vim/indent/logtalk.vim

    r4301 r4302  
    5151    endif 
    5252    " Check for opening conditional on previous line 
    53     if pline =~ '^\s*\([(;]\|->\)' && pline !~ '\.\s*\(%.*\)\?$' 
     53    if pline =~ '^\s*\([(;]\|->\)' && pline !~ '\.\s*\(%.*\)\?$' && pline !~ '^.*\([)][,]\s*\(%.*\)\?$\)' 
    5454        let ind = ind + &sw 
    5555    endif 
  • trunk/wenv/vim/NOTES.txt

    r4301 r4302  
    3838 
    39394. Copy the file "indent/logtalk.vim" to the "indent" sub-directory in  
    40 your VIM installation directory (replacing any existing older file). 
     40your VIM installation directory (replacing any existing older file) and  
     41add the following lines to your ~/.vimrc file: 
     42 
     43    syntax on 
     44    filetype indent on