Chargement de metapost.php
[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( # prgrammation 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','currentpicture','pencircle','pensquare','evenly','withdots','labeloffset','fullcircle','halfcircle','unitsquare','ahlength','black','white','red','green','blue','identity','up','down','right','origin','infont','defaultfont','extra_endfig','extra_beginfig','jobname','charcode','prologues'
78 )
79 ),
80 'SYMBOLS' => array(
81 '&',':=','=','+','-','*','**','/'
82 ),
83 'CASE_SENSITIVE' => array(
84 GESHI_COMMENTS => false,
85 1 => true,
86 2 => true,
87 3 => true,
88 4 => true,
89 5 => true,
90 6 => true,
91 7 => true,
92 8 => true,
93 9 => true,
94 10 => true,
95 11 => true
96 ),
97 'STYLES' => array(
98 'KEYWORDS' => array(
99 1 => 'color: #472;', # type
100 2 => 'color: #35A;font-weight: bold;', # file construction
101 3 => 'color: #A53;', # structure
102 4 => 'color: #35A;', # operation
103 5 => 'color: #35A;', # numeric operation
104 6 => 'color: #35A;', # constructors
105 7 => 'color: #35A;', # labels
106 8 => 'color: #3B5;', # transformations
107 9 => 'color: #35A;', # draw instructions
108 10 => 'color: #472;', # style
109 11 => 'color: #000;' # div
110 ),
111 'COMMENTS' => array(
112 1 => 'color: #777;',
113 'MULTI' => 'color: #880;'
114 ),
115 'ESCAPE_CHAR' => array(
116 0 => ''
117 ),
118 'BRACKETS' => array(
119 0 => 'color: #820;'
120 ),
121 'STRINGS' => array(
122 0 => 'color: #880;'
123 ),
124 'NUMBERS' => array(
125 0 => 'color: #000;'
126 ),
127 'METHODS' => array(
128 1 => '',
129 2 => ''
130 ),
131 'SYMBOLS' => array(
132 0 => 'color: #000;'
133 ),
134 'REGEXPS' => array(
135 ),
136 'SCRIPT' => array(
137 0 => ''
138 )
139 ),
140 'URLS' => array(
141 1 => '',
142 2 => '',
143 3 => '',
144 4 => '',
145 5 => '',
146 6 => '',
147 7 => '',
148 8 => '',
149 9 => '',
150 10 => '',
151 11 => ''
152 ),
153 'OOLANG' => false,
154 'OBJECT_SPLITTERS' => array(
155 ),
156 'REGEXPS' => array(
157 ),
158 'STRICT_MODE_APPLIES' => GESHI_NEVER,
159 'SCRIPT_DELIMITERS' => array(
160 ),
161 'HIGHLIGHT_STRICT_BLOCK' => array(
162 )
163 );
164
165 ?>

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.