Début du tri du groupe 11 (voir README pour plus de détails)
[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 'pair','numeric','string','path','color','suffix','text','expr','picture','transform','pen'
48 ),
49 2 => array( # file construction
50 'beginfig','begingroup','def','end','enddef','endfig','endgroup','hide','image','input','let','makepen','makepath','primary','primarydef','save','secondarydef','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
56 'buildcycle','substring','subpath','arclength','unitvector','angle','length','bbox','ulcorner','urcorner','llcorner','lrcorner','center','reverse','xpart','ypart','xxpart','xypart','yxpart','yypart','rt','lft','top','bot'
57 ),
58 5 => array( # numeric operations
59 'floor','sind','cosd','sqrt','uniformdeviate','abs','mexp','mlog','not','known','unknown','scantokens','decimal','write'
60 ),
61 6 => array( # constructors
62 'to','whatever','of','cycle','mod','controls','and','doublepath','contour','also'
63 ),
64 7 => array( # labels
65 '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'
66 ),
67 8 => array(# path transformations
68 'scaled','xscaled','yscaled','zscaled','shifted','rotated','transformed','reflected','about','reflectedaround','rotatedaround','rotatedabout'
69 ),
70 9 => array(# draw instructions
71 'draw','drawarrow','drawdblarrow','fill','unfill','undraw','clip','addto'
72 ),
73 10 => array(# style
74 'dashed','withcolor','withpen','pickup','drawoptions','str','cutafter','cutbefore','direction','directiontime','intersectionpoint','intersectiontimes','arctime','dir','curl','tension','point','precontrol','postcontrol'
75 ),
76 11 => array(# div
77 'nullpicture','pencircle','pensquare','evenly','withdots','labeloffset','fullcircle','halfcircle','unitsquare','ahlength','black','white','red','green','blue','identity','up','down','right','origin','infont'
78 ),
79 12 => array(# Internal variables with numeric values
80 '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'
81 ),
82 13 => array(# Internal string variables
83 'jobname','outputformat','outputtemplate'
84 ),
85 14 => array(# other predefined variables
86 'background','currentpen','currentpicture','cuttings','defaultfont','extra_beginfig','extra_endfig'
87 )
88 ),
89 'SYMBOLS' => array(
90 '&',':=','=','+','-','*','**','/'
91 ),
92 'CASE_SENSITIVE' => array(
93 GESHI_COMMENTS => false,
94 1 => true,
95 2 => true,
96 3 => true,
97 4 => true,
98 5 => true,
99 6 => true,
100 7 => true,
101 8 => true,
102 9 => true,
103 10 => true,
104 11 => true,
105 12 => true,
106 13 => true,
107 14 => true
108 ),
109 'STYLES' => array(
110 'KEYWORDS' => array(
111 1 => 'color: #472;', # type
112 2 => 'color: #35A;font-weight: bold;', # file construction
113 3 => 'color: #A53;', # structure
114 4 => 'color: #35A;', # operation
115 5 => 'color: #35A;', # numeric operation
116 6 => 'color: #35A;', # constructors
117 7 => 'color: #35A;', # labels
118 8 => 'color: #3B5;', # transformations
119 9 => 'color: #35A;', # draw instructions
120 10 => 'color: #472;', # style
121 11 => 'color: #000;', # div
122 12 => 'color: #000;', # Internal variables with numeric values
123 13 => 'color: #000;', # Internal string variables
124 14 => 'color: #000;', # other predefined variables
125 ),
126 'COMMENTS' => array(
127 1 => 'color: #777;',
128 'MULTI' => 'color: #880;'
129 ),
130 'ESCAPE_CHAR' => array(
131 0 => ''
132 ),
133 'BRACKETS' => array(
134 0 => 'color: #820;'
135 ),
136 'STRINGS' => array(
137 0 => 'color: #880;'
138 ),
139 'NUMBERS' => array(
140 0 => 'color: #000;'
141 ),
142 'METHODS' => array(
143 1 => '',
144 2 => ''
145 ),
146 'SYMBOLS' => array(
147 0 => 'color: #000;'
148 ),
149 'REGEXPS' => array(
150 ),
151 'SCRIPT' => array(
152 0 => ''
153 )
154 ),
155 'URLS' => array(
156 1 => '',
157 2 => '',
158 3 => '',
159 4 => '',
160 5 => '',
161 6 => '',
162 7 => '',
163 8 => '',
164 9 => '',
165 10 => '',
166 11 => '',
167 12 => '',
168 13 => '',
169 14 => ''
170 ),
171 'OOLANG' => false,
172 'OBJECT_SPLITTERS' => array(
173 ),
174 'REGEXPS' => array(
175 ),
176 'STRICT_MODE_APPLIES' => GESHI_NEVER,
177 'SCRIPT_DELIMITERS' => array(
178 ),
179 'HIGHLIGHT_STRICT_BLOCK' => array(
180 )
181 );
182
183 ?>

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.