2 /*************************************************************************************
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
10 * Metapost language file for GeSHi.
13 *************************************************************************************
15 * This file is part of GeSHi.
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.
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.
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
31 ************************************************************************************/
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
40 'COMMENT_REGEXP' => array(
42 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
43 'QUOTEMARKS' => array('"'),
47 'boolean','color','cmykcolor','expr','numeric','pair','path','pen',
48 'string','suffix','text','picture','transform'
50 2 => array( # file construction
51 'beginfig','begingroup','def','end','enddef','endfig','endgroup',
52 'hide','image','input','let','makepen','makepath','newinternal',
53 'primary','primarydef','save','secondarydef','shipout','special',
54 'tertiarydef','vardef'
56 3 => array( # programmation structure
57 'else','elseif','endfor','exitif','exitunless','fi','for','forever',
58 'forsuffix','if','step','until','upto'
60 4 => array( # operations return pair
61 'bot','dir','direction of','intersectionpoint','intiersectiontimes',
62 'lft','llcorner','lrcorner','penoffset of','point of','postcontrol of',
63 'precontrol of','rt','ulcorner','unitvector','urcorner','top','z'
65 5 => array( # operations return path or picture or pen
66 'bbox','center','cutafter','cutbefore','dashpart','dashpattern',
67 'glyph of','infont','pathpart','penpart','reverse','subpath of'
69 6 => array( # operations return string (or complementary)
70 'closefrom','fontpart','readfrom','str','substring of','textpart'
72 7 => array( # operations return numeric
73 'abs','angle','arclength','arctime of','ASCII','blackpart','bluepart',
74 'ceiling','char','colormodel','cosd','cyanpart','decimal','decr',
75 'directionpoint of','directiontime of','div','dotprod','floor',
76 'fontsize','greenpart','greypart','hex','incr','length','magentapart',
77 'max','mexp','min','mlog','mod','normaldeviate','oct','redpart','round',
78 'sind','sqrt','uniformdeviate','xpart','xxpart','xypart','yellowpart',
79 'ypart','yxpart','yypart'
81 8 => array( # operations return boolean
82 'and','bounded', 'clipped','filled','known','not','odd','or','rgbcolor',
83 'stroked','textual','unknown'
85 9 => array( # operations return color
88 10 => array( # operations return transform
91 11 => array( # constructors
92 'also','buildcycle','contour','controls','cycle','doublepath',
93 'setbounds','to','whatever'
96 'label','label.bot','label.top','label.llft','label.lft','label.ulft',
97 'label.lrt','label.rt','label.urt','labels','labels.bot','labels.top',
98 'labels.llft','labels.lft','labels.ulft','labels.lrt','labels.rt',
99 'labels.urt','thelabel','thelabel.bot','thelabel.top','thelabel.llft',
100 'thelabel.lft','thelabel.ulft','thelabel.lrt','thelabel.rt',
101 'thelabel.urt','dotlabel','dotlabel.bot','dotlabel.top','dotlabel.llft',
102 'dotlabel.lft','dotlabel.ulft','dotlabel.lrt','dotlabel.rt',
105 13 => array(# general transformations
106 'about','reflected','reflectedaround','rotated','rotatedabout',
107 'rotatedaround','scaled','slanted','shifted','transformed','xscaled',
110 14 => array(# draw instructions
111 'addto','clip','cutdraw','draw','drawarrow','drawdblarrow','drawdot',
112 'fill','filldraw','undraw','unfill','unfilldraw'
114 15 => array(# style of drawing
115 'dashed','drawoptions','pickup','withcmykcolor','withcolor',
116 'withgreyscale','withpen','withpostscript','withprescript',
117 'withrgbcolor','curl','tension'
119 16 => array(# read write show
120 'errhelp','errmessage','fontmapfile','fontmapline','interim',
121 'loggingall', 'message','scantokens','show','showdependencies',
122 'showtoken','showvariable','tracingall','tracingnone','write to'
124 17 => array(# Internal variables with numeric values
125 'ahangle','ahlength','bboxmargin','charcode','day','defaultcolormodel',
126 'defaultpen','defaultscale','dotlabeldiam','hour','labeloffset',
127 'linecap','linejoin','minute','miterlimit','month','mpprocset',
128 'pausing','prologues','restoreclipcolor','showstopping','time',
129 'tracingcapsules','tracingchoices','tracingcommands','tracingequations',
130 'tracinglostchars','tracingmacros','tracingonline','tracingoutput',
131 'tracingrestores','tracingspecs','tracingstats','tracingtitles',
132 'troffmode','truecorners','warningcheck','year'
134 18 => array(# Internal string variables
135 'filenametemplate','jobname','outputformat','outputtemplate'
137 19 => array(# other predefined variables
138 'background','currentpen','currentpicture','cuttings','defaultfont',
139 'extra_beginfig','extra_endfig'
141 20 => array(# predefined constants
142 'beveled','black','blue','bp','butt','cc','cm','dd','ditto','down',
143 'epsilon','evenly','EOF','false','fullcircle','green','halfcircle',
144 'identity','left','mitered','mm','mpversion','nullpen','nullpicture',
145 'origin','pc','pencircle','pensquare','pt','quartercircle','red',
146 'right','rounded','squared','true','unitsquare','up','white',
151 '&',':=','=','+','-','*','**','/','++','+-+','<','>','>=','<=','<>',
154 'CASE_SENSITIVE' => array(
155 GESHI_COMMENTS
=> false,
179 1 => 'color: #472;', # type
180 2 => 'color: #35A;font-weight: bold;', # file construction
181 3 => 'color: #A53;', # structure
182 4 => 'color: #35A;', # operations return pair
183 5 => 'color: #35A;', # operations return path or picture or pen
184 6 => 'color: #35A;', # operations return string
185 7 => 'color: #35A;', # operations return numeric
186 8 => 'color: #35A;', # operations return boolean
187 9 => 'color: #35A;', # operations return color
188 10 => 'color: #35A;', # operations return transform
189 11 => 'color: #35A;', # constructors
190 12 => 'color: #35A;', # labels
191 13 => 'color: #3B5;', # general transformations
192 14 => 'color: #35A;', # draw instructions
193 15 => 'color: #472;', # style of drawing
194 16 => 'color: #000;', # read write show
195 17 => 'color: #000;', # Internal variables with numeric values
196 18 => 'color: #000;', # Internal string variables
197 19 => 'color: #000;', # other predefined variables
198 20 => 'color: #000;' # predefined constants
202 'MULTI' => 'color: #880;'
204 'ESCAPE_CHAR' => array(
252 'OBJECT_SPLITTERS' => array(
256 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
257 'SCRIPT_DELIMITERS' => array(
259 'HIGHLIGHT_STRICT_BLOCK' => array(
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.