Skip to content


Subversion checkout URL

You can clone with
Download ZIP


syntax: python expansion (${@...}) inside shell functions #5

merged 1 commit into from

2 participants


Python expansions inside shell functions completely broke syntax highlighting for that function...

Jozef Šiška syntax: python expansion (${@...}) inside shell functions
Signed-off-by: Jozef Šiška <>

Excellent work on this, this has been a long-standing annoyance :) Thanks.

@kergoth kergoth merged commit c58628c into kergoth:master

No problem...
Though I'm not really sure it's completely correct...
But it worked on everything I've seen so far...


Passed Passed build

Failed Failed build

Failed PC build failed: build log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 22, 2013
  1. @yoyko

    syntax: python expansion (${@...}) inside shell functions

    Jozef Šiška authored yoyko committed
    Signed-off-by: Jozef Šiška <>
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  syntax/bitbake.vim
3  syntax/bitbake.vim
@@ -86,6 +86,9 @@ syn keyword bbShFakeRootFlag fakeroot contained
syn match bbShFuncDef "^\(fakeroot\s*\)\?\([0-9A-Za-z_-]\+\)\(python\)\@<!\(\s*()\s*\)\({\)\@=" contains=bbShFakeRootFlag,bbFunction,bbDelimiter nextgroup=bbShFuncRegion skipwhite
syn region bbShFuncRegion matchgroup=bbDelimiter start="{\s*$" end="^}\s*$" keepend contained contains=@shell
+" Python value inside shell functions
+syn region shDeref start=+${@+ skip=+\\$+ excludenl end=+}+ contained contains=@python
" BitBake python metadata
syn keyword bbPyFlag python contained
syn match bbPyFuncDef "^\(python\s\+\)\([0-9A-Za-z_-]\+\)\?\(\s*()\s*\)\({\)\@=" contains=bbPyFlag,bbFunction,bbDelimiter nextgroup=bbPyFuncRegion skipwhite
Something went wrong with that request. Please try again.