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','string','suffix','text','picture','transform'
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'
52 3 => array( # programmation structure
53 'else','elseif','endfor','exitif','exitunless','fi','for','forever','forsuffix','if','step','until','upto'
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'
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'
61 6 => array( # operations return string (or complementary)
62 'closefrom','fontpart','readfrom','str','substring of','textpart'
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'
67 8 => array( # operations return boolean
68 'and','bounded', 'clipped','filled','known','not','odd','or','rgbcolor','stroked','textual','unknown'
70 9 => array( # operations return color
73 10 => array( # operations return transform
76 11 => array( # constructors
77 'also','buildcycle','contour','controls','cycle','doublepath','setbounds','to','whatever'
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'
82 13 => array(# general transformations
83 'about','reflected','reflectedaround','rotated','rotatedabout','rotatedaround','scaled','slanted','shifted','transformed','xscaled','yscaled','zscaled'
85 14 => array(# draw instructions
86 'addto','clip','cutdraw','draw','drawarrow','drawdblarrow','drawdot','fill','filldraw','undraw','unfill','unfilldraw'
88 15 => array(# style of drawing
89 'dashed','drawoptions','pickup','withcmykcolor','withcolor','withgreyscale','withpen','withpostscript','withprescript','withrgbcolor','curl','tension'
91 16 => array(# read write show
92 'errhelp','errmessage','fontmapfile','fontmapline','interim','loggingall','message','scantokens','show','showdependencies','showtoken','showvariable','tracingall','tracingnone','write to'
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'
97 18 => array(# Internal string variables
98 'filenametemplate','jobname','outputformat','outputtemplate'
100 19 => array(# other predefined variables
101 'background','currentpen','currentpicture','cuttings','defaultfont','extra_beginfig','extra_endfig'
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'
108 '&',':=','=','+','-','*','**','/','++','+-+','<','>','>=','<=','<>','#@','@','@#'
110 'CASE_SENSITIVE' => array(
111 GESHI_COMMENTS
=> false,
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
158 'MULTI' => 'color: #880;'
160 'ESCAPE_CHAR' => array(
208 'OBJECT_SPLITTERS' => array(
212 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
213 'SCRIPT_DELIMITERS' => array(
215 '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.