"Fossies" - the Fresh Open Source Software Archive

Member "nano-4.5/syntax/spec.nanorc" (19 Nov 2018, 1924 Bytes) of package /linux/misc/nano-4.5.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ## Syntax highlighting for RPM spec files.
    2 
    3 syntax spec "\.spec(\.[^/]+)?$"
    4 comment "#"
    5 
    6 # Main tags.
    7 color brightblue "((Icon|ExclusiveOs|ExcludeOs)[[:space:]]*:)"
    8 color brightblue "((BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch)[[:space:]]*:)"
    9 color brightblue "((Conflicts|Obsoletes|Provides|Requires|Requires\(.*\)|Enhances|Suggests|BuildConflicts|BuildRequires|Recommends|PreReq|Supplements)[[:space:]]*:)"
   10 color brightblue "((Epoch|Serial|Nosource|Nopatch)[[:space:]]*:)"
   11 color brightblue "((AutoReq|AutoProv|AutoReqProv)[[:space:]]*:)"
   12 color brightblue "((Copyright|License|Summary|Summary\(.*\)|Distribution|Vendor|Packager|Group|Source\d*|Patch\d*|BuildRoot|Prefix)[[:space:]]*:)"
   13 color brightblue "((Name|Version|Release|Url|URL)[[:space:]]*:)"
   14 color brightblue start="^Source" end=":" start="^Patch" end=":"
   15 # Architectures.
   16 color brightred "(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)"
   17 # Architecture conditionals.
   18 color brightred "(ifarch|ifnarch)"
   19 # OS conditionals.
   20 color brightred "(ifos|ifnos)"
   21 # %* strings.
   22 color green "%([A-Z_a-z_0-9_]*)"
   23 color magenta "%_([A-Z_a-z_0-9_]*)"
   24 color yellow start="%__" end="\ "
   25 color magenta start="%\{" end="\}"
   26 color yellow start="%\{__" end="\}"
   27 # Sections.
   28 color red "^%(build$|changelog|check$|clean$|description|files|install$|package|pre|prep$|pretrans|preun)"
   29 color red "^%(post|posttrans|postun|trigger|triggerin|triggerpostun|triggerun|verifyscript)"
   30 # Conditionals and defines.
   31 color brightred "%(if|else|endif|define|global|undefine)"
   32 
   33 # Comments.
   34 color cyan "#.*"
   35 # Special case: "# norootforbuild" is handled as main tag.
   36 color brightblue "^# norootforbuild"
   37 # %changelog date entries.
   38 color brightyellow "^\* .*\)$"
   39 # Trailing whitespace.
   40 color ,green "[[:space:]]+$"