summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-08 11:40:49 +0000
committerChris Larson <clarson@kergoth.com>2004-12-08 11:40:49 +0000
commit5b667a934f4d6778cb7327ccb58712a6d6e180b2 (patch)
treee716346845af751f1fe37babf97bad7bd0b066b6 /contrib
parent81fdab93a2a4fbb849c09f4f5e054ffb1ae69b20 (diff)
downloadbitbake-5b667a934f4d6778cb7327ccb58712a6d6e180b2.tar.gz
Vim syntax update: 1) Add EXPORT_FUNCTIONS to our list of valid statements, and 2) Add '.' to the variable character class (so that things like IMAGE_FSTYPE_ext2.gz are properly highlighted).
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vim/syntax/bb.vim14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim
index db2949fd5..d8d37aa91 100644
--- a/contrib/vim/syntax/bb.vim
+++ b/contrib/vim/syntax/bb.vim
@@ -51,20 +51,20 @@ syn region bbString matchgroup=bbQuote start=/'/ skip=/\\$/ excludenl end=/'/ c
" BitBake variable metadata
syn keyword bbExportFlag export contained nextgroup=bbIdentifier skipwhite
-syn match bbVarOverrideDeref "${[a-zA-Z0-9\-_]\+}"
+syn match bbVarOverrideDeref "${[a-zA-Z0-9\-_\.]\+}"
hi def link bbVarOverrideDeref String
-syn match bbVarDef "^\(export\s*\)\?\([a-zA-Z0-9\-_]\+\(_[${}a-zA-Z0-9\-_]\+\)\?\)\s*\(\(:=\)\|\(+=\)\|\(=+\)\|=\)\@=" contains=bbExportFlag,bbIdentifier,bbVarOverrideDeref nextgroup=bbVarEq
+syn match bbVarDef "^\(export\s*\)\?\([a-zA-Z0-9\-_\.]\+\(_[${}a-zA-Z0-9\-_\.]\+\)\?\)\s*\(\(:=\)\|\(+=\)\|\(=+\)\|=\)\@=" contains=bbExportFlag,bbIdentifier,bbVarOverrideDeref nextgroup=bbVarEq
-syn match bbIdentifier "[a-zA-Z0-9\-_]\+" display contained
+syn match bbIdentifier "[a-zA-Z0-9\-_\.]\+" display contained
"syn keyword bbVarEq = display contained nextgroup=bbVarValue
syn match bbVarEq "\(:=\)\|\(+=\)\|\(=+\)\|=" contained nextgroup=bbVarValue
syn match bbVarValue ".*$" contained contains=bbString
" BitBake variable metadata flags
-syn match bbVarFlagDef "^\([a-zA-Z0-9\-_]\+\)\(\[[a-zA-Z0-9\-_]\+\]\)\@=" contains=bbIdentifier nextgroup=bbVarFlagFlag
+syn match bbVarFlagDef "^\([a-zA-Z0-9\-_\.]\+\)\(\[[a-zA-Z0-9\-_\.]\+\]\)\@=" contains=bbIdentifier nextgroup=bbVarFlagFlag
syn region bbVarFlagFlag matchgroup=bbArrayBrackets start="\[" end="\]\s*\(=\)\@=" keepend excludenl contained contains=bbIdentifier nextgroup=bbVarEq
-"syn match bbVarFlagFlag "\[\([a-zA-Z0-9\-_]\+\)\]\s*\(=\)\@=" contains=bbIdentifier nextgroup=bbVarEq
+"syn match bbVarFlagFlag "\[\([a-zA-Z0-9\-_\.]\+\)\]\s*\(=\)\@=" contains=bbIdentifier nextgroup=bbVarEq
" Functions!
@@ -104,8 +104,8 @@ syn region bbDefRegion matchgroup=bbDelimiter start=":$" end='^$' end='^\(\s\)\
" BitBake statements
-syn keyword bbStatement include inherit addtask addhandler display contained
-syn match bbStatementLine "^\(include\|inherit\|addtask\|addhandler\)\s\+" contains=bbStatement nextgroup=bbStatementRest
+syn keyword bbStatement include inherit addtask addhandler EXPORT_FUNCTIONS display contained
+syn match bbStatementLine "^\(include\|inherit\|addtask\|addhandler\|EXPORT_FUNCTIONS\)\s\+" contains=bbStatement nextgroup=bbStatementRest
syn match bbStatementRest ".*$" contained contains=bbString,bbVarOverrideDeref
syn match bbArrayBrackets "[\[\]]" contained