diff options
Diffstat (limited to 'bitbake/contrib/vim/syntax/bitbake.vim')
| -rw-r--r-- | bitbake/contrib/vim/syntax/bitbake.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/contrib/vim/syntax/bitbake.vim b/bitbake/contrib/vim/syntax/bitbake.vim index 5d2bc633e1..43a1990b0b 100644 --- a/bitbake/contrib/vim/syntax/bitbake.vim +++ b/bitbake/contrib/vim/syntax/bitbake.vim | |||
| @@ -42,11 +42,11 @@ syn region bbString matchgroup=bbQuote start=/'/ skip=/\\$/ excludenl end=/'/ c | |||
| 42 | 42 | ||
| 43 | syn keyword bbExportFlag export contained nextgroup=bbIdentifier skipwhite | 43 | syn keyword bbExportFlag export contained nextgroup=bbIdentifier skipwhite |
| 44 | syn match bbVarDeref "${[a-zA-Z0-9\-_\.]\+}" contained | 44 | syn match bbVarDeref "${[a-zA-Z0-9\-_\.]\+}" contained |
| 45 | syn match bbVarDef "^\(export\s*\)\?\([a-zA-Z0-9\-_\.]\+\(_[${}a-zA-Z0-9\-_\.]\+\)\?\)\s*\(\(:=\)\|\(+=\)\|\(=+\)\|\(?=\)\|=\)\@=" contains=bbExportFlag,bbIdentifier,bbVarDeref nextgroup=bbVarEq | 45 | syn match bbVarDef "^\(export\s*\)\?\([a-zA-Z0-9\-_\.]\+\(_[${}a-zA-Z0-9\-_\.]\+\)\?\)\s*\(:=\|+=\|=+\|\.=\|=\.\|?=\|=\)\@=" contains=bbExportFlag,bbIdentifier,bbVarDeref nextgroup=bbVarEq |
| 46 | 46 | ||
| 47 | syn match bbIdentifier "[a-zA-Z0-9\-_\.]\+" display contained | 47 | syn match bbIdentifier "[a-zA-Z0-9\-_\.]\+" display contained |
| 48 | "syn keyword bbVarEq = display contained nextgroup=bbVarValue | 48 | "syn keyword bbVarEq = display contained nextgroup=bbVarValue |
| 49 | syn match bbVarEq "\(:=\)\|\(+=\)\|\(=+\)\|\(?=\)\|=" contained nextgroup=bbVarValue | 49 | syn match bbVarEq "\(:=\|+=\|=+\|\.=\|=\.\|?=\|=\)" contained nextgroup=bbVarValue |
| 50 | syn match bbVarValue ".*$" contained contains=bbString,bbVarDeref | 50 | syn match bbVarValue ".*$" contained contains=bbString,bbVarDeref |
| 51 | 51 | ||
| 52 | 52 | ||
| @@ -90,8 +90,8 @@ syn region bbDefRegion start='^def\s\+\w\+\s*([^)]*)\s*:\s*$' end='^\(\s\|$\)\@ | |||
| 90 | 90 | ||
| 91 | 91 | ||
| 92 | " BitBake statements | 92 | " BitBake statements |
| 93 | syn keyword bbStatement include inherit addtask addhandler EXPORT_FUNCTIONS display contained | 93 | syn keyword bbStatement include inherit require addtask addhandler EXPORT_FUNCTIONS display contained |
| 94 | syn match bbStatementLine "^\(include\|inherit\|addtask\|addhandler\|EXPORT_FUNCTIONS\)\s\+" contains=bbStatement nextgroup=bbStatementRest | 94 | syn match bbStatementLine "^\(include\|inherit\|require\|addtask\|addhandler\|EXPORT_FUNCTIONS\)\s\+" contains=bbStatement nextgroup=bbStatementRest |
| 95 | syn match bbStatementRest ".*$" contained contains=bbString,bbVarDeref | 95 | syn match bbStatementRest ".*$" contained contains=bbString,bbVarDeref |
| 96 | 96 | ||
| 97 | " Highlight | 97 | " Highlight |
