PageRenderTime 66ms CodeModel.GetById 61ms app.highlight 3ms RepoModel.GetById 0ms app.codeStats 1ms

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

#
XML | 105 lines | 99 code | 3 blank | 3 comment | 0 complexity | df9cbb97673d54b538107f862fa0c674 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<!-- PostScript mode, by Slava Pestov. Based on PostScriptTokenMarker by
  6     Ralf Engels -->
  7<MODE>
  8	<PROPS>
  9		<PROPERTY NAME="lineComment" VALUE="%" />
 10	</PROPS>
 11	<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 12		<!-- whitespace: (space and tab) -->
 13		<WHITESPACE> </WHITESPACE>
 14		<WHITESPACE>	</WHITESPACE>
 15
 16		<!-- Comments -->
 17		<EOL_SPAN TYPE="COMMENT2">%!</EOL_SPAN>
 18		<EOL_SPAN TYPE="COMMENT2">%?</EOL_SPAN>
 19		<EOL_SPAN TYPE="COMMENT2">%%</EOL_SPAN>
 20		<EOL_SPAN TYPE="COMMENT1">%</EOL_SPAN>
 21
 22		<!-- Literals -->
 23		<SPAN TYPE="LITERAL1" DELEGATE="LITERAL">
 24			<BEGIN>(</BEGIN>
 25			<END>)</END>
 26		</SPAN>
 27
 28		<SPAN TYPE="LITERAL1">
 29			<BEGIN>&lt;</BEGIN>
 30			<END>&gt;</END>
 31		</SPAN>
 32
 33		<MARK_FOLLOWING TYPE="LABEL">/</MARK_FOLLOWING>
 34
 35		<SEQ TYPE="OPERATOR">}</SEQ>
 36		<SEQ TYPE="OPERATOR">{</SEQ>
 37		<SEQ TYPE="OPERATOR">]</SEQ>
 38		<SEQ TYPE="OPERATOR">[</SEQ>
 39
 40		<KEYWORDS IGNORE_CASE="FALSE">
 41			<KEYWORD1>pop</KEYWORD1>
 42			<KEYWORD1>exch</KEYWORD1>
 43			<KEYWORD1>dup</KEYWORD1>
 44			<KEYWORD1>copy</KEYWORD1>
 45			<KEYWORD1>roll</KEYWORD1>
 46			<KEYWORD1>clear</KEYWORD1>
 47			<KEYWORD1>count</KEYWORD1>
 48			<KEYWORD1>mark</KEYWORD1>
 49			<KEYWORD1>cleartomark</KEYWORD1>
 50			<KEYWORD1>counttomark</KEYWORD1>
 51
 52			<KEYWORD1>exec</KEYWORD1>
 53			<KEYWORD1>if</KEYWORD1>
 54			<KEYWORD1>ifelse</KEYWORD1>
 55			<KEYWORD1>for</KEYWORD1>
 56			<KEYWORD1>repeat</KEYWORD1>
 57			<KEYWORD1>loop</KEYWORD1>
 58			<KEYWORD1>exit</KEYWORD1>
 59			<KEYWORD1>stop</KEYWORD1>
 60			<KEYWORD1>stopped</KEYWORD1>
 61			<KEYWORD1>countexecstack</KEYWORD1>
 62			<KEYWORD1>execstack</KEYWORD1>
 63			<KEYWORD1>quit</KEYWORD1>
 64			<KEYWORD1>start</KEYWORD1>
 65
 66			<OPERATOR>add</OPERATOR>
 67			<OPERATOR>div</OPERATOR>
 68			<OPERATOR>idiv</OPERATOR>
 69			<OPERATOR>mod</OPERATOR>
 70			<OPERATOR>mul</OPERATOR>
 71			<OPERATOR>sub</OPERATOR>
 72			<OPERATOR>abs</OPERATOR>
 73			<OPERATOR>ned</OPERATOR>
 74			<OPERATOR>ceiling</OPERATOR>
 75			<OPERATOR>floor</OPERATOR>
 76			<OPERATOR>round</OPERATOR>
 77			<OPERATOR>truncate</OPERATOR>
 78			<OPERATOR>sqrt</OPERATOR>
 79			<OPERATOR>atan</OPERATOR>
 80			<OPERATOR>cos</OPERATOR>
 81			<OPERATOR>sin</OPERATOR>
 82			<OPERATOR>exp</OPERATOR>
 83			<OPERATOR>ln</OPERATOR>
 84			<OPERATOR>log</OPERATOR>
 85			<OPERATOR>rand</OPERATOR>
 86			<OPERATOR>srand</OPERATOR>
 87			<OPERATOR>rrand</OPERATOR>
 88
 89			<LITERAL2>true</LITERAL2>
 90			<LITERAL2>false</LITERAL2>
 91			<LITERAL2>NULL</LITERAL2>
 92		</KEYWORDS>
 93	</RULES>
 94
 95	<RULES SET="LITERAL" DEFAULT="LITERAL1" ESCAPE="\">
 96		<!-- whitespace: (space and tab) -->
 97		<WHITESPACE> </WHITESPACE>
 98		<WHITESPACE>	</WHITESPACE>
 99
100		<SPAN TYPE="LITERAL1" DELEGATE="LITERAL">
101			<BEGIN>(</BEGIN>
102			<END>)</END>
103		</SPAN>
104	</RULES>
105</MODE>