diff options
-rw-r--r-- | bitbake/bitbake/contrib/vim/indent/bitbake.vim | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bitbake/bitbake/contrib/vim/indent/bitbake.vim b/bitbake/bitbake/contrib/vim/indent/bitbake.vim index 1d0a6e82d3..1d99395985 100644 --- a/bitbake/bitbake/contrib/vim/indent/bitbake.vim +++ b/bitbake/bitbake/contrib/vim/indent/bitbake.vim | |||
@@ -319,6 +319,18 @@ function BitbakeIndent(lnum) | |||
319 | return ret | 319 | return ret |
320 | endif | 320 | endif |
321 | 321 | ||
322 | " TODO: GetShIndent doesn't detect tasks prepended with 'fakeroot' | ||
323 | " Need to submit a patch upstream to Vim to provide an extension point. | ||
324 | " Unlike the Python indenter, the Sh indenter is way too large to copy and | ||
325 | " modify here. | ||
326 | if name == "bbShFuncRegion" | ||
327 | return GetShIndent() | ||
328 | endif | ||
329 | |||
330 | " TODO: | ||
331 | " + heuristics for de-denting out of a bbPyDefRegion? e.g. when the user | ||
332 | " types an obvious BB keyword like addhandler or addtask, or starts | ||
333 | " writing a shell task. Maybe too hard to implement... | ||
334 | |||
322 | return -1 | 335 | return -1 |
323 | "return s:pythonIndentExpr() | ||
324 | endfunction | 336 | endfunction |