summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2013-04-03 13:01:42 -0400
committerWill Woods <wwoods@redhat.com>2013-04-03 13:01:42 -0400
commit62af9f2f905819c0bea4b7df7be141c85194c59d (patch)
tree85d0a82d9e4203a6b1a5bac62ba5ccfa31c42a19
parentb171085c731b16113413969bf260221b1923456c (diff)
downloadvim-scripts-62af9f2f905819c0bea4b7df7be141c85194c59d.tar.gz
vim-scripts-62af9f2f905819c0bea4b7df7be141c85194c59d.tar.xz
vim-scripts-62af9f2f905819c0bea4b7df7be141c85194c59d.zip
syntax/systemd: add ConditionHost=
It's another freeform string like ConditionKernelCommandLine, so add it there.
-rw-r--r--syntax/systemd.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax/systemd.vim b/syntax/systemd.vim
index dbd284c..a18e0f5 100644
--- a/syntax/systemd.vim
+++ b/syntax/systemd.vim
@@ -49,7 +49,7 @@ syn match sdUnitKey contained /^JobTimeoutSec=/ nextgroup=sdDuration,sdErr
syn match sdUnitKey contained /^Condition\(PathExists\|PathExistsGlob\|PathIsDirectory\|PathIsMountPoint\|PathIsReadWrite\|PathIsSymbolicLink\|DirectoryNotEmpty\|FileNotEmpty\|FileIsExecutable\)=|\=!\=/ contains=sdConditionFlag nextgroup=sdFilename,sdErr
syn match sdUnitKey contained /^ConditionVirtualization=|\=!\=/ contains=sdConditionFlag nextgroup=sdVirtType,sdErr
syn match sdUnitKey contained /^ConditionSecurity=|\=!\=/ contains=sdConditionFlag nextgroup=sdSecurityType,sdErr
-syn match sdUnitKey contained /^ConditionKernelCommandLine=|\=!\=/ contains=sdConditionFlag
+syn match sdUnitKey contained /^Condition\%(KernelCommandLine\|Host\)=|\=!\=/ contains=sdConditionFlag
syn match sdUnitKey contained /^ConditionCapability=|\=!\=/ contains=sdConditionFlag nextgroup=sdAnyCapName,sdErr
syn match sdUnitKey contained /^ConditionACPower=|\=/ contains=sdConditionFlag nextgroup=sdBool,sdErr
syn match sdUnitKey contained /^ConditionNull=|\=/ contains=sdConditionFlag nextgroup=sdBool,sdErr