PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/modes/rpmspec.xml

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