mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
bitbake: contrib/vim: Special handling of bb.fatal
Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
80cf7d4a91
commit
b775e1d82c
@@ -176,7 +176,7 @@ function GetPythonIndent(lnum)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" If the previous line was a stop-execution statement...
|
" If the previous line was a stop-execution statement...
|
||||||
if getline(plnum) =~ '^\s*\(break\|continue\|raise\|return\|pass\)\>'
|
if getline(plnum) =~ '^\s*\(break\|continue\|raise\|return\|pass\|bb\.fatal\)\>'
|
||||||
" See if the user has already dedented
|
" See if the user has already dedented
|
||||||
if indent(a:lnum) > indent(plnum) - shiftwidth()
|
if indent(a:lnum) > indent(plnum) - shiftwidth()
|
||||||
" If not, recommend one dedent
|
" If not, recommend one dedent
|
||||||
|
|||||||
Reference in New Issue
Block a user