aboutsummaryrefslogtreecommitdiff
path: root/runtime/indent
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-10-29 09:57:50 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-10-29 10:01:44 +0100
commit228bc4c416092eb2601329aa881915a565ee64d2 (patch)
tree6dc3b62a9a0edcf475ecad10f182b3929bfe066c /runtime/indent
parent4f67f5ba6e5c9c1a8483e2b1f5faaa48bfb221ad (diff)
downloadrneovim-228bc4c416092eb2601329aa881915a565ee64d2.tar.gz
rneovim-228bc4c416092eb2601329aa881915a565ee64d2.tar.bz2
rneovim-228bc4c416092eb2601329aa881915a565ee64d2.zip
vim-patch:d473c8c10126
Update runtime files. https://github.com/vim/vim/commit/d473c8c101262702ea9eeb14907ee20a786942b2
Diffstat (limited to 'runtime/indent')
-rw-r--r--runtime/indent/logtalk.vim5
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()