summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorChris Laplante via bitbake-devel <bitbake-devel@lists.openembedded.org>2019-10-17 12:36:54 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-07 19:43:24 +0000
commit29fc51319cb1449f8b1ef809e520eef3a5ed8b32 (patch)
tree714616ce9c8d0df6fb8d72a14abde898f4a3eea8 /bitbake
parentc426ba9afe2aef0f01baff10353ca3ed946bafb6 (diff)
downloadpoky-29fc51319cb1449f8b1ef809e520eef3a5ed8b32.tar.gz
bitbake: contrib/vim: handle shell indenting
Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/bitbake/contrib/vim/indent/bitbake.vim14
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()
324endfunction 336endfunction