X-Git-Url: https://melusine.eu.org/syracuse/G/git/?p=geshi.git;a=blobdiff_plain;f=metapost.php;h=1cec6164c6c929a9e06a67a71c42e5ada1e322ac;hp=e70343f96d04b8a656edf057b5f31dad2f50f57a;hb=e795b5c0881cf4db0ba94078e32e3da9d44a688a;hpb=837c94654572b5cffc21670e892b19e0d30562b1 diff --git a/metapost.php b/metapost.php index e70343f..1cec616 100644 --- a/metapost.php +++ b/metapost.php @@ -49,7 +49,7 @@ $language_data = array ( 2 => array( # file construction 'beginfig','begingroup','def','end','enddef','endfig','endgroup','hide','image','input','let','makepen','makepath','primary','primarydef','save','secondarydef','tertiarydef','vardef' ), - 3 => array( # prgrammation structure + 3 => array( # programmation structure 'else','elseif','endfor','exitif','exitunless','fi','for','forever','forsuffix','if','step','until','upto' ), 4 => array( # operations @@ -74,7 +74,16 @@ $language_data = array ( 'dashed','withcolor','withpen','pickup','drawoptions','str','cutafter','cutbefore','direction','directiontime','intersectionpoint','intersectiontimes','arctime','dir','curl','tension','point','precontrol','postcontrol' ), 11 => array(# div - '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' + 'nullpicture','pencircle','pensquare','evenly','withdots','labeloffset','fullcircle','halfcircle','unitsquare','ahlength','black','white','red','green','blue','identity','up','down','right','origin','infont' + ), + 12 => array(# Internal variables with numeric values + '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' + ), + 13 => array(# Internal string variables + 'jobname','outputformat','outputtemplate' + ), + 14 => array(# other predefined variables + 'background','currentpen','currentpicture','cuttings','defaultfont','extra_beginfig','extra_endfig' ) ), 'SYMBOLS' => array( @@ -92,7 +101,10 @@ $language_data = array ( 8 => true, 9 => true, 10 => true, - 11 => true + 11 => true, + 12 => true, + 13 => true, + 14 => true ), 'STYLES' => array( 'KEYWORDS' => array( @@ -106,7 +118,10 @@ $language_data = array ( 8 => 'color: #3B5;', # transformations 9 => 'color: #35A;', # draw instructions 10 => 'color: #472;', # style - 11 => 'color: #000;' # div + 11 => 'color: #000;', # div + 12 => 'color: #000;', # Internal variables with numeric values + 13 => 'color: #000;', # Internal string variables + 14 => 'color: #000;', # other predefined variables ), 'COMMENTS' => array( 1 => 'color: #777;', @@ -147,8 +162,11 @@ $language_data = array ( 7 => '', 8 => '', 9 => '', - 10 => '', - 11 => '' + 10 => '', + 11 => '', + 12 => '', + 13 => '', + 14 => '' ), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array(