spec.jsf.in (2494B)
1 # JOE syntax highlight file for RPM spec files 2 # from Suse, joe-3.5-20.src.rpm 3 4 # some text sections are _very_ long (e.g. %changelog) 5 -4000 6 7 =Idle 8 =Colon blue 9 =Macro bold blue 10 =CtrlMacro bold cyan 11 =Comment green 12 =Variable cyan 13 =Text dim white 14 =Section red 15 =Shell magenta 16 =Shell2 bold magenta 17 =ShellCmd yellow 18 =ShellRedir bold yellow 19 20 :idle Idle 21 * idle 22 "%" expr recolor=-1 23 "\n" colident 24 "#" comment recolor=-1 25 "$" shellexpr recolor=-1 26 27 :colident Colon 28 * idle noeat recolor=-100 29 ":" idle 30 "A-Za-z0-9" colident 31 32 :shellbracemagic Shell2 33 * shellbraceexpr 34 :shellbraceexpr Shell 35 * shellexpr 36 "a-zA-Z_0-9 " shellbraceexpr 37 ":?!+-/" shellbracemagic noeat 38 :shellexpr Shell 39 * idle 40 "a-zA-Z_0-9" shellexpr 41 "{[" shellbraceexpr 42 "}]" idle 43 "(" shellexpr2 44 ")" idle 45 :shellexpr2 Shell 46 * shellcmds recolor=-1 47 "(" shellmath 48 ")" shellexpr noeat 49 :shellmathops Shell2 50 * shellmath 51 :shellmathvar Shell2 52 * shellmath 53 "a-zA-Z_0-9{}[]" shellmathvar 54 :shellmath Shell 55 * idle 56 "+=/%*-" shellmathops noeat 57 "0-9 " shellmath 58 "$" shellmathvar recolor=-1 59 ")" shellexpr2 60 :shellcmds ShellCmd 61 * shellcmds 62 "|&><" shellredirs noeat 63 ")" shellexpr recolor=-1 64 :shellredirs ShellRedir 65 * shellcmds 66 67 :expr Macro 68 * idle recolor=-1 69 "%" idle 70 " \t" expr 71 "a-zA-Z_0-9" exprident recolor=-1 buffer 72 "{" exprvar recolor=-1 73 "(" shellexpr noeat 74 75 :exprident Variable 76 * idle noeat recolor=-1 strings 77 "define" define 78 "description" textsection 79 "changelog" textsection 80 "build" section 81 "install" section 82 "clean" section 83 "files" section 84 "package" section 85 "prep" section 86 "pre" section 87 "post" section 88 "postun" section 89 "preun" section 90 "setup" macro 91 "patch" macronum 92 "dir" macro 93 "config" macro 94 "doc" macro 95 "defattr" macro 96 "ifarch" ctrlmacro 97 "ifnarch" ctrlmacro 98 "endif" ctrlmacro 99 "else" ctrlmacro 100 "if" ctrlmacro 101 done 102 "a-zA-Z_" exprident 103 104 :section Section 105 * idle 106 107 :macronum Macro 108 * idle recolor=-1 109 "0-9" macronum recolor=-1 110 111 :macro Macro 112 * idle recolor=-1 113 114 :ctrlmacro CtrlMacro 115 * idle recolor=-1 116 117 :define Macro 118 * defineident noeat recolor=-1 119 " \t" define 120 "\n" idle noeat 121 122 :defineident Variable 123 * defineident 124 " \t\n" idle noeat 125 126 :exprvar Variable 127 * exprvar 128 "}" idle 129 130 :textsection Section 131 * textsection2 noeat 132 133 :textsection2 Idle 134 * textsection2 135 "\n" textsection3 136 137 :textsection3 Text 138 * textsection3 139 "%" textsection4 recolor=-1 140 141 :textsection4 Text 142 * expr noeat recolor=-2 143 "%" textsection3 144 145 :comment Comment 146 * comment 147 "\n" idle noeat 148 149