2101690b9c45bea87b1d81c843027d8ed4748041
[geshi.git] / metapost.php
1 <?php
2 /*************************************************************************************
3 * metapost.php
4 * -----------
5 * Author: Maxime Chupin (notezik@gmail.com)
6 * Copyright: (c) 2011 Maxime Chupin
7 * Release Version: 1.0.8.10
8 * Date Started: 2011/08/02
9 *
10 * Metapost language file for GeSHi.
11 *
12 *
13 *************************************************************************************
14 *
15 * This file is part of GeSHi.
16 *
17 * GeSHi is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
21 *
22 * GeSHi is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with GeSHi; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 *
31 ************************************************************************************/
32
33 $language_data = array (
34 'LANG_NAME' => 'MetaPost',
35 'COMMENT_SINGLE' => array(1 => '%'),
36 'COMMENT_MULTI' => array(
37 'verbatim'=>'etex', # TeX and LaTeX preambule
38 'btex' => 'etex' # TeX invocation
39 ),
40 'COMMENT_REGEXP' => array(
41 ),
42 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
43 'QUOTEMARKS' => array('"',"'"),
44 'ESCAPE_CHAR' => '',
45 'KEYWORDS' => array(
46 1 => array( # type
47 'boolean','color','cmykcolor','expr','numeric','pair','path','pen','string','suffix','text','picture','transform'
48 ),
49 2 => array( # file construction
50 'beginfig','begingroup','def','end','enddef','endfig','endgroup','hide','image','input','let','makepen','makepath','newinternal','primary','primarydef','save','secondarydef','shipout','special','tertiarydef','vardef'
51 ),
52 3 => array( # programmation structure
53 'else','elseif','endfor','exitif','exitunless','fi','for','forever','forsuffix','if','step','until','upto'
54 ),
55 4 => array( # operations return pair
56 'bot','dir','direction of','intersectionpoint','intiersectiontimes','lft','llcorner','lrcorner','penoffset of','point of','postcontrol of','precontrol of','rt','ulcorner','unitvector','urcorner','top','z'
57 ),
58 5 => array( # operations return path or picture or pen
59 'bbox','center','cutafter','cutbefore','dashpart','dashpattern','glyph of','infont','pathpart','penpart','reverse','subpath of'
60 ),
61 6 => array( # operations return string (or complementary)
62 'closefrom','fontpart','readfrom','str','substring of','textpart'
63 ),
64 7 => array( # operations return numeric
65 'abs','angle','arclength','arctime of','ASCII','blackpart','bluepart','ceiling','char','colormodel','cosd','cyanpart','decimal','decr','directionpoint of','directiontime of','div','dotprod','floor','fontsize','greenpart','greypart','hex','incr','length','magentapart','max','mexp','min','mlog','mod','normaldeviate','oct','redpart','round','sind','sqrt','uniformdeviate','xpart','xxpart','xypart','yellowpart','ypart','yxpart','yypart'
66 ),
67 8 => array( # operations return boolean
68 'and','bounded', 'clipped','filled','known','not','odd','or','rgbcolor','stroked','textual','unknown'
69 ),
70 9 => array( # operations return color
71 'colorpart'
72 ),
73 10 => array( # operations return transform
74 'inverse'
75 ),
76 11 => array( # constructors
77 'also','buildcycle','contour','controls','cycle','doublepath','setbounds','to','whatever'
78 ),
79 12 => array( # labels
80 'label','label.bot','label.top','label.llft','label.lft','label.ulft','label.lrt','label.rt','label.urt','labels','labels.bot','labels.top','labels.llft','labels.lft','labels.ulft','labels.lrt','labels.rt','labels.urt','thelabel','thelabel.bot','thelabel.top','thelabel.llft','thelabel.lft','thelabel.ulft','thelabel.lrt','thelabel.rt','thelabel.urt','dotlabel','dotlabel.bot','dotlabel.top','dotlabel.llft','dotlabel.lft','dotlabel.ulft','dotlabel.lrt','dotlabel.rt','dotlabel.urt'
81 ),
82 13 => array(# general transformations
83 'about','reflected','reflectedaround','rotated','rotatedabout','rotatedaround','scaled','slanted','shifted','transformed','xscaled','yscaled','zscaled'
84 ),
85 14 => array(# draw instructions
86 'addto','clip','cutdraw','draw','drawarrow','drawdblarrow','drawdot','fill','filldraw','undraw','unfill','unfilldraw'
87 ),
88 15 => array(# style of drawing
89 'dashed','drawoptions','pickup','withcmykcolor','withcolor','withgreyscale','withpen','withpostscript','withprescript','withrgbcolor','curl','tension'
90 ),
91 16 => array(# read write show
92 'errhelp','errmessage','fontmapfile','fontmapline','interim','loggingall','message','scantokens','show','showdependencies','showtoken','showvariable','tracingall','tracingnone','write to'
93 ),
94 17 => array(# Internal variables with numeric values
95 'ahangle','ahlength','bboxmargin','charcode','day','defaultcolormodel','defaultpen','defaultscale','dotlabeldiam','hour','labeloffset','linecap','linejoin','minute','miterlimit','month','mpprocset','pausing','prologues','restoreclipcolor','showstopping','time','tracingcapsules','tracingchoices','tracingcommands','tracingequations','tracinglostchars','tracingmacros','tracingonline','tracingoutput','tracingrestores','tracingspecs','tracingstats','tracingtitles','troffmode','truecorners','warningcheck','year'
96 ),
97 18 => array(# Internal string variables
98 'filenametemplate','jobname','outputformat','outputtemplate'
99 ),
100 19 => array(# other predefined variables
101 'background','currentpen','currentpicture','cuttings','defaultfont','extra_beginfig','extra_endfig'
102 ),
103 20 => array(# predefined constants
104 'beveled','black','blue','bp','butt','cc','cm','dd','ditto','down','epsilon','evenly','EOF','false','fullcircle','green','halfcircle','identity','left','mitered','mm','mpversion','nullpen','nullpicture','origin','pc','pencircle','pensquare','pt','quartercircle','red','right','rounded','squared','true','unitsquare','up','white','withdots'
105 )
106 ),
107 'SYMBOLS' => array(
108 '&',':=','=','+','-','*','**','/','++','+-+','<','>','>=','<=','<>','#@','@','@#'
109 ),
110 'CASE_SENSITIVE' => array(
111 GESHI_COMMENTS => false,
112 1 => true,
113 2 => true,
114 3 => true,
115 4 => true,
116 5 => true,
117 6 => true,
118 7 => true,
119 8 => true,
120 9 => true,
121 10 => true,
122 11 => true,
123 12 => true,
124 13 => true,
125 14 => true,
126 15 => true,
127 16 => true,
128 17 => true,
129 18 => true,
130 19 => true,
131 20 => true
132 ),
133 'STYLES' => array(
134 'KEYWORDS' => array(
135 1 => 'color: #472;', # type
136 2 => 'color: #35A;font-weight: bold;', # file construction
137 3 => 'color: #A53;', # structure
138 4 => 'color: #35A;', # operations return pair
139 5 => 'color: #35A;', # operations return path or picture or pen
140 6 => 'color: #35A;', # operations return string
141 7 => 'color: #35A;', # operations return numeric
142 8 => 'color: #35A;', # operations return boolean
143 9 => 'color: #35A;', # operations return color
144 10 => 'color: #35A;', # operations return transform
145 11 => 'color: #35A;', # constructors
146 12 => 'color: #35A;', # labels
147 13 => 'color: #3B5;', # general transformations
148 14 => 'color: #35A;', # draw instructions
149 15 => 'color: #472;', # style of drawing
150 16 => 'color: #000;', # read write show
151 17 => 'color: #000;', # Internal variables with numeric values
152 18 => 'color: #000;', # Internal string variables
153 19 => 'color: #000;', # other predefined variables
154 20 => 'color: #000;' # predefined constants
155 ),
156 'COMMENTS' => array(
157 1 => 'color: #777;',
158 'MULTI' => 'color: #880;'
159 ),
160 'ESCAPE_CHAR' => array(
161 0 => ''
162 ),
163 'BRACKETS' => array(
164 0 => 'color: #820;'
165 ),
166 'STRINGS' => array(
167 0 => 'color: #880;'
168 ),
169 'NUMBERS' => array(
170 0 => 'color: #000;'
171 ),
172 'METHODS' => array(
173 1 => '',
174 2 => ''
175 ),
176 'SYMBOLS' => array(
177 0 => 'color: #000;'
178 ),
179 'REGEXPS' => array(
180 ),
181 'SCRIPT' => array(
182 0 => ''
183 )
184 ),
185 'URLS' => array(
186 1 => '',
187 2 => '',
188 3 => '',
189 4 => '',
190 5 => '',
191 6 => '',
192 7 => '',
193 8 => '',
194 9 => '',
195 10 => '',
196 11 => '',
197 12 => '',
198 13 => '',
199 14 => '',
200 15 => '',
201 16 => '',
202 17 => '',
203 18 => '',
204 19 => '',
205 20 => ''
206 ),
207 'OOLANG' => false,
208 'OBJECT_SPLITTERS' => array(
209 ),
210 'REGEXPS' => array(
211 ),
212 'STRICT_MODE_APPLIES' => GESHI_NEVER,
213 'SCRIPT_DELIMITERS' => array(
214 ),
215 'HIGHLIGHT_STRICT_BLOCK' => array(
216 )
217 );
218
219 ?>

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.