| 1 |
filetype: rpmspec |
| 2 |
|
| 3 |
detect: |
| 4 |
filename: "\\.spec$|\\.rpmspec$" |
| 5 |
|
| 6 |
rules: |
| 7 |
- preproc: "\\b(Icon|ExclusiveOs|ExcludeOs):" |
| 8 |
- preproc: "\\b(BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch):" |
| 9 |
- preproc: "\\b(Conflicts|Obsoletes|Provides|Requires|Requires\\(.*\\)|Enhances|Suggests|BuildConflicts|BuildRequires|Recommends|PreReq|Supplements):" |
| 10 |
- preproc: "\\b(Epoch|Serial|Nosource|Nopatch):" |
| 11 |
- preproc: "\\b(AutoReq|AutoProv|AutoReqProv):" |
| 12 |
- preproc: "\\b(Copyright|License|Summary|Summary\\(.*\\)|Distribution|Vendor|Packager|Group|Source[0-9]*|Patch[0-9]*|BuildRoot|Prefix):" |
| 13 |
- preproc: "\\b(Name|Version|Release|Url|URL):" |
| 14 |
- preproc: |
| 15 |
start: "^(Source|Patch)" |
| 16 |
end: ":" |
| 17 |
rules: [] |
| 18 |
|
| 19 |
- preproc: "(i386|i486|i586|i686|athlon|ia64|alpha|alphaev5|alphaev56|alphapca56|alphaev6|alphaev67|sparc|sparcv9|sparc64armv3l|armv4b|armv4lm|ips|mipsel|ppc|ppc|iseries|ppcpseries|ppc64|m68k|m68kmint|Sgi|rs6000|i370|s390x|s390|noarch)" |
| 20 |
- preproc: "(ifarch|ifnarch|ifos|ifnos)" |
| 21 |
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'" |
| 22 |
- statement: "%(if|else|endif|define|global|undefine)" |
| 23 |
- statement: "%_?([A-Z_a-z_0-9_]*)" |
| 24 |
- statement: |
| 25 |
start: "%\\{" |
| 26 |
end: "\\}" |
| 27 |
rules: [] |
| 28 |
|
| 29 |
- statement: |
| 30 |
start: "%\\{__" |
| 31 |
end: "\\}" |
| 32 |
rules: [] |
| 33 |
|
| 34 |
- statement: "\\$(RPM_BUILD_ROOT)\\>" |
| 35 |
- special: "^%(build$|changelog|check$|clean$|description)" |
| 36 |
- special: "^%(files|install$|package|prep$)" |
| 37 |
- special: "^%(pre|preun|pretrans|post|postun|posttrans)" |
| 38 |
- special: "^%(trigger|triggerin|triggerpostun|triggerun|verifyscript)" |
| 39 |
- comment: "(^|[[:space:]])#([^{].*)?$" |
| 40 |
- constant: "^\\*.*$" |
| 41 |
- indent-char.whitespace: "[[:space:]]+$" |
| 42 |
- indent-char: " + +| + +" |
| 43 |
- todo: "TODO:?" |