annotate runtime/syntax/conaryrecipe.vim @ 27:a01d8d9b2a58 first-working-version

first working version.
author kono
date Mon, 27 Oct 2008 18:28:11 +0900
parents 76efa0be13f1
children e170173ecb68
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 " Vim syntax file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 " Language: Conary Recipe
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 " Maintainer: rPath Inc <http://www.rpath.com>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 " Updated: 2007-05-07
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6 if exists("b:current_syntax")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 finish
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10 runtime! syntax/python.vim
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 syn keyword conarySFunction mainDir addAction addSource addArchive addPatch
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12 syn keyword conarySFunction addRedirect addSvnSnapshot addMercurialSnapshot
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 syn keyword conarySFunction addCvsSnapshot
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 syn keyword conaryGFunction add addAll addNewGroup addReference createGroup
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 syn keyword conaryGFunction addNewGroup startGroup remove removeComponents
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 syn keyword conaryGFunction replace setByDefault setDefaultGroup
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 syn keyword conaryGFunction setLabelPath addCopy setSearchPath
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20 syn keyword conaryBFunction Run Automake Configure ManualConfigure
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 syn keyword conaryBFunction Make MakeParallelSubdir MakeInstall
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22 syn keyword conaryBFunction MakePathsInstall CompilePython
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23 syn keyword conaryBFunction Ldconfig Desktopfile Environment SetModes
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24 syn keyword conaryBFunction Install Copy Move Symlink Link Remove Doc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 syn keyword conaryBFunction Create MakeDirs disableParallelMake
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26 syn keyword conaryBFunction ConsoleHelper Replace SGMLCatalogEntry
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27 syn keyword conaryBFunction XInetdService XMLCatalogEntry TestSuite
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28 syn keyword conaryBFunction PythonSetup
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
30 syn keyword conaryPFunction NonBinariesInBindirs FilesInMandir
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31 syn keyword conaryPFunction ImproperlyShared CheckSonames CheckDestDir
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
32 syn keyword conaryPFunction ComponentSpec PackageSpec
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
33 syn keyword conaryPFunction Config InitScript GconfSchema SharedLibrary
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
34 syn keyword conaryPFunction ParseManifest MakeDevices DanglingSymlinks
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
35 syn keyword conaryPFunction AddModes WarnWriteable IgnoredSetuid
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
36 syn keyword conaryPFunction Ownership ExcludeDirectories
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
37 syn keyword conaryPFunction BadFilenames BadInterpreterPaths ByDefault
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
38 syn keyword conaryPFunction ComponentProvides ComponentRequires Flavor
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
39 syn keyword conaryPFunction EnforceConfigLogBuildRequirements Group
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
40 syn keyword conaryPFunction EnforceSonameBuildRequirements InitialContents
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
41 syn keyword conaryPFunction FilesForDirectories LinkCount
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
42 syn keyword conaryPFunction MakdeDevices NonMultilibComponent ObsoletePaths
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
43 syn keyword conaryPFunction NonMultilibDirectories NonUTF8Filenames TagSpec
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
44 syn keyword conaryPFunction Provides RequireChkconfig Requires TagHandler
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
45 syn keyword conaryPFunction TagDescription Transient User UtilizeGroup
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
46 syn keyword conaryPFunction WorldWritableExecutables UtilizeUser
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
47 syn keyword conaryPFunction WarnWritable Strip CheckDesktopFiles
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
48
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
49 " Most destdirPolicy aren't called from recipes, except for these
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
50 syn keyword conaryPFunction AutoDoc RemoveNonPackageFiles TestSuiteFiles
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
51 syn keyword conaryPFunction TestSuiteLinks
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
52
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
53 syn match conaryMacro "%(\w\+)[sd]" contained
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
54 syn match conaryBadMacro "%(\w*)[^sd]" contained " no final marker
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
55 syn keyword conaryArches contained x86 x86_64 alpha ia64 ppc ppc64 s390
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
56 syn keyword conaryArches contained sparc sparc64
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
57 syn keyword conarySubArches contained sse2 3dnow 3dnowext cmov i486 i586
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
58 syn keyword conarySubArches contained i686 mmx mmxext nx sse sse2
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
59 syn keyword conaryBad RPM_BUILD_ROOT EtcConfig InstallBucket subDir subdir
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
60 syn keyword conaryBad RPM_OPT_FLAGS
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
61 syn cluster conaryArchFlags contains=conaryArches,conarySubArches
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
62 syn match conaryArch "Arch\.[a-z0-9A-Z]\+" contains=conaryArches,conarySubArches
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
63 syn match conaryArch "Arch\.[a-z0-9A-Z]\+" contains=conaryArches,conarySubArches
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
64 syn keyword conaryKeywords name buildRequires version clearBuildReqs
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
65 syn keyword conaryUseFlag contained pcre tcpwrappers gcj gnat selinux pam
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
66 syn keyword conaryUseFlag contained bootstrap python perl
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
67 syn keyword conaryUseFlag contained readline gdbm emacs krb builddocs
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
68 syn keyword conaryUseFlag contained alternatives tcl tk X gtk gnome qt
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
69 syn keyword conaryUseFlag contained xfce gd ldap sasl pie desktop ssl kde
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
70 syn keyword conaryUseFlag contained slang netpbm nptl ipv6 buildtests
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
71 syn keyword conaryUseFlag contained ntpl xen dom0 domU
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
72 syn match conaryUse "Use\.[a-z0-9A-Z]\+" contains=conaryUseFlag
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
73
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
74 " strings
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
75 syn region pythonString matchgroup=Normal start=+[uU]\='+ end=+'+ skip=+\\\\\|\\'+ contains=pythonEscape,conaryMacro,conaryBadMacro
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
76 syn region pythonString matchgroup=Normal start=+[uU]\="+ end=+"+ skip=+\\\\\|\\"+ contains=pythonEscape,conaryMacro,conaryBadMacro
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
77 syn region pythonString matchgroup=Normal start=+[uU]\="""+ end=+"""+ contains=pythonEscape,conaryMacro,conaryBadMacro
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
78 syn region pythonString matchgroup=Normal start=+[uU]\='''+ end=+'''+ contains=pythonEscape,conaryMacro,conaryBadMacro
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
79 syn region pythonRawString matchgroup=Normal start=+[uU]\=[rR]'+ end=+'+ skip=+\\\\\|\\'+ contains=conaryMacro,conaryBadMacro
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
80 syn region pythonRawString matchgroup=Normal start=+[uU]\=[rR]"+ end=+"+ skip=+\\\\\|\\"+ contains=conaryMacro,conaryBadMacro
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
81 syn region pythonRawString matchgroup=Normal start=+[uU]\=[rR]"""+ end=+"""+ contains=conaryMacro,conaryBadMacro
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
82 syn region pythonRawString matchgroup=Normal start=+[uU]\=[rR]'''+ end=+'''+ contains=conaryMacro,conaryBadMacro
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
83
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
84 hi def link conaryMacro Special
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
85 hi def link conaryrecipeFunction Function
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
86 hi def link conaryError Error
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
87 hi def link conaryBFunction conaryrecipeFunction
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
88 hi def link conaryGFunction conaryrecipeFunction
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
89 hi def link conarySFunction Operator
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
90 hi def link conaryPFunction Typedef
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
91 hi def link conaryFlags PreCondit
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
92 hi def link conaryArches Special
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
93 hi def link conarySubArches Special
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
94 hi def link conaryBad conaryError
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
95 hi def link conaryBadMacro conaryError
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
96 hi def link conaryKeywords Special
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
97 hi def link conaryUseFlag Typedef
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
98
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
99 let b:current_syntax = "conaryrecipe"