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