summaryrefslogtreecommitdiff
path: root/runtime/indent/treetop.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/indent/treetop.vim')
-rw-r--r--runtime/indent/treetop.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/indent/treetop.vim b/runtime/indent/treetop.vim
index 01716e719..2c6eecf5c 100644
--- a/runtime/indent/treetop.vim
+++ b/runtime/indent/treetop.vim
@@ -26,12 +26,12 @@ function GetTreetopIndent()
let line = getline(pnum)
if line =~ '^\s*\%(grammar\|module\|rule\)\>'
- let ind += &sw
+ let ind += shiftwidth()
endif
let line = getline(v:lnum)
if line =~ '^\s*end\>'
- let ind -= &sw
+ let ind -= shiftwidth()
end
retur ind