diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-11 18:00:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-11 18:00:22 +0200 |
commit | d473c8c101262702ea9eeb14907ee20a786942b2 (patch) | |
tree | 2837d2cd3d597959693ae8ffc8d0dd686c425f75 /runtime/indent | |
parent | f53c692240851f71b930e80a0b0b5d4cfcc1b4a3 (diff) |
Update runtime files.
Diffstat (limited to 'runtime/indent')
-rw-r--r-- | runtime/indent/logtalk.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/indent/logtalk.vim b/runtime/indent/logtalk.vim index 5b69663e1d..8e36f86115 100644 --- a/runtime/indent/logtalk.vim +++ b/runtime/indent/logtalk.vim @@ -1,5 +1,5 @@ " Maintainer: Paulo Moura <pmoura@logtalk.org> -" Revised on: 2008.06.02 +" Revised on: 2018.08.04 " Language: Logtalk " This Logtalk indent file is a modified version of the Prolog @@ -42,6 +42,9 @@ function! GetLogtalkIndent() " Check for clause head on previous line elseif pline =~ ':-\s*\(%.*\)\?$' let ind = ind + shiftwidth() + " Check for grammar rule head on previous line + elseif pline =~ '-->\s*\(%.*\)\?$' + let ind = ind + shiftwidth() " Check for entity closing directive on previous line elseif pline =~ '^\s*:-\send_\(object\|protocol\|category\)\.\(%.*\)\?$' let ind = ind - shiftwidth() |