PageRenderTime 293ms CodeModel.GetById 287ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre3/modes/rpmspec.xml

#
XML | 147 lines | 122 code | 18 blank | 7 comment | 0 complexity | 005989cd30ef60e7ea6e9b0eb6d3937b MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<MODE>
  6	<PROPS>
  7		<PROPERTY NAME="lineComment" VALUE="#" />
  8	</PROPS>
  9	<RULES>
 10		<WHITESPACE> </WHITESPACE>
 11		<WHITESPACE>	</WHITESPACE>
 12
 13		<!-- comments -->
 14		<EOL_SPAN TYPE="COMMENT1" AT_LINE_START="TRUE">#</EOL_SPAN>
 15
 16		<!-- Dependency operators -->
 17		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 18		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 19		<SEQ TYPE="OPERATOR">=</SEQ>
 20
 21		<!-- %attr -->
 22		<SPAN TYPE="MARKUP" DELEGATE="ATTR" NO_LINE_BREAK="TRUE">
 23			<BEGIN>%attr(</BEGIN>
 24			<END>)</END>
 25		</SPAN>
 26
 27		<!-- %verify -->
 28		<SPAN TYPE="MARKUP" DELEGATE="VERIFY" NO_LINE_BREAK="TRUE">
 29			<BEGIN>%verify(</BEGIN>
 30			<END>)</END>
 31		</SPAN>
 32
 33		<!-- Source -->
 34		<MARK_FOLLOWING TYPE="KEYWORD1"
 35			AT_LINE_START="TRUE">Source</MARK_FOLLOWING>
 36
 37		<!-- Patch -->
 38		<MARK_FOLLOWING TYPE="KEYWORD1"
 39			AT_LINE_START="TRUE">Patch</MARK_FOLLOWING>
 40		<MARK_FOLLOWING TYPE="FUNCTION"
 41			AT_LINE_START="TRUE">%patch</MARK_FOLLOWING>
 42
 43		<!-- Variables -->
 44		<SPAN TYPE="KEYWORD2" NO_LINE_BREAK="TRUE">
 45			<BEGIN>${</BEGIN>
 46			<END>}</END>
 47		</SPAN>
 48
 49		<MARK_FOLLOWING TYPE="KEYWORD2">$#</MARK_FOLLOWING>
 50		<MARK_FOLLOWING TYPE="KEYWORD2">$?</MARK_FOLLOWING>
 51		<MARK_FOLLOWING TYPE="KEYWORD2">$*</MARK_FOLLOWING>
 52		<MARK_FOLLOWING TYPE="KEYWORD2">$&lt;</MARK_FOLLOWING>
 53		<MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>
 54
 55		<SEQ TYPE="NULL">)</SEQ>
 56		<SEQ TYPE="NULL">(</SEQ>
 57		<SEQ TYPE="NULL">!</SEQ>
 58		<SEQ TYPE="NULL">+</SEQ>
 59		<SEQ TYPE="NULL">-</SEQ>
 60		<SEQ TYPE="NULL">/</SEQ>
 61		<SEQ TYPE="NULL">*</SEQ>
 62		<SEQ TYPE="NULL">^</SEQ>
 63		<SEQ TYPE="NULL">~</SEQ>
 64		<SEQ TYPE="NULL">}</SEQ>
 65		<SEQ TYPE="NULL">{</SEQ>
 66		<SEQ TYPE="NULL">.</SEQ>
 67		<SEQ TYPE="NULL">,</SEQ>
 68		<SEQ TYPE="NULL">;</SEQ>
 69		<SEQ TYPE="NULL">]</SEQ>
 70		<SEQ TYPE="NULL">[</SEQ>
 71		<SEQ TYPE="NULL">?</SEQ>
 72
 73		<KEYWORDS>
 74			<KEYWORD1>Summary:</KEYWORD1>
 75			<KEYWORD1>Name:</KEYWORD1>
 76			<KEYWORD1>Version:</KEYWORD1>
 77			<KEYWORD1>Release:</KEYWORD1>
 78			<KEYWORD1>Copyright:</KEYWORD1>
 79			<KEYWORD1>Group:</KEYWORD1>
 80			<KEYWORD1>URL:</KEYWORD1>
 81			<KEYWORD1>Packager:</KEYWORD1>
 82			<KEYWORD1>Prefix:</KEYWORD1>
 83			<KEYWORD1>Distribution:</KEYWORD1>
 84			<KEYWORD1>Vendor:</KEYWORD1>
 85			<KEYWORD1>Icon:</KEYWORD1>
 86			<KEYWORD1>Provides:</KEYWORD1>
 87			<KEYWORD1>Requires:</KEYWORD1>
 88			<KEYWORD1>Serial:</KEYWORD1>
 89			<KEYWORD1>Conflicts:</KEYWORD1>
 90			<KEYWORD1>AutoReqProv:</KEYWORD1>
 91			<KEYWORD1>ExcludeArch:</KEYWORD1>
 92			<KEYWORD1>ExclusiveArch:</KEYWORD1>
 93			<KEYWORD1>ExclusiveOS:</KEYWORD1>
 94			<KEYWORD1>BuildRoot:</KEYWORD1>
 95			<KEYWORD1>NoSource:</KEYWORD1>
 96			<KEYWORD1>NoPatch:</KEYWORD1>
 97
 98			<LABEL>%prep</LABEL>
 99			<LABEL>%install</LABEL>
100			<LABEL>%description</LABEL>
101			<LABEL>%build</LABEL>
102			<LABEL>%files</LABEL>
103			<LABEL>%clean</LABEL>
104			<LABEL>%pre</LABEL>
105			<LABEL>%post</LABEL>
106			<LABEL>%preun</LABEL>
107			<LABEL>%postun</LABEL>
108			<LABEL>%verifyscript</LABEL>
109
110			<FUNCTION>%setup</FUNCTION>
111			<FUNCTION>%ifarch</FUNCTION>
112			<FUNCTION>%ifnarch</FUNCTION>
113			<FUNCTION>%ifos</FUNCTION>
114			<FUNCTION>%ifnos</FUNCTION>
115			<FUNCTION>%else</FUNCTION>
116			<FUNCTION>%endif</FUNCTION>
117
118			<MARKUP>%doc</MARKUP>
119			<MARKUP>%config</MARKUP>
120			<MARKUP>%docdir</MARKUP>
121			<MARKUP>%dir</MARKUP>
122			<MARKUP>%package</MARKUP>
123		</KEYWORDS>
124	</RULES>
125
126	<RULES SET="ATTR" HIGHLIGHT_DIGITS="TRUE">
127		<SEQ TYPE="OPERATOR">,</SEQ>
128		<SEQ TYPE="OPERATOR">-</SEQ>
129	</RULES>
130
131	<RULES SET="VERIFY">
132		<SEQ TYPE="NULL">,</SEQ>
133
134		<KEYWORDS>
135			<KEYWORD2>owner</KEYWORD2>
136			<KEYWORD2>group</KEYWORD2>
137			<KEYWORD2>mode</KEYWORD2>
138			<KEYWORD2>md5</KEYWORD2>
139			<KEYWORD2>size</KEYWORD2>
140			<KEYWORD2>maj</KEYWORD2>
141			<KEYWORD2>min</KEYWORD2>
142			<KEYWORD2>symlink</KEYWORD2>
143			<KEYWORD2>mtime</KEYWORD2>
144			<OPERATOR>not</OPERATOR>
145		</KEYWORDS>
146	</RULES>
147</MODE>