diff options
Diffstat (limited to 'bitbake/contrib')
-rw-r--r-- | bitbake/contrib/vim/indent/bitbake.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/contrib/vim/indent/bitbake.vim b/bitbake/contrib/vim/indent/bitbake.vim index 1381034098..7ee9d69938 100644 --- a/bitbake/contrib/vim/indent/bitbake.vim +++ b/bitbake/contrib/vim/indent/bitbake.vim | |||
@@ -40,7 +40,7 @@ set cpo&vim | |||
40 | 40 | ||
41 | let s:maxoff = 50 " maximum number of lines to look backwards for () | 41 | let s:maxoff = 50 " maximum number of lines to look backwards for () |
42 | 42 | ||
43 | function GetPythonIndent(lnum) | 43 | function! GetBBPythonIndent(lnum) |
44 | 44 | ||
45 | " If this line is explicitly joined: If the previous line was also joined, | 45 | " If this line is explicitly joined: If the previous line was also joined, |
46 | " line it up with that one, otherwise add two 'shiftwidth' | 46 | " line it up with that one, otherwise add two 'shiftwidth' |
@@ -257,7 +257,7 @@ let b:did_indent = 1 | |||
257 | setlocal indentkeys+=0\" | 257 | setlocal indentkeys+=0\" |
258 | 258 | ||
259 | 259 | ||
260 | function BitbakeIndent(lnum) | 260 | function! BitbakeIndent(lnum) |
261 | if !has('syntax_items') | 261 | if !has('syntax_items') |
262 | return -1 | 262 | return -1 |
263 | endif | 263 | endif |
@@ -315,7 +315,7 @@ function BitbakeIndent(lnum) | |||
315 | endif | 315 | endif |
316 | 316 | ||
317 | if index(["bbPyDefRegion", "bbPyFuncRegion"], name) != -1 | 317 | if index(["bbPyDefRegion", "bbPyFuncRegion"], name) != -1 |
318 | let ret = GetPythonIndent(a:lnum) | 318 | let ret = GetBBPythonIndent(a:lnum) |
319 | " Should normally always be indented by at least one shiftwidth; but allow | 319 | " Should normally always be indented by at least one shiftwidth; but allow |
320 | " return of -1 (defer to autoindent) or -2 (force indent to 0) | 320 | " return of -1 (defer to autoindent) or -2 (force indent to 0) |
321 | if ret == 0 | 321 | if ret == 0 |