"Fossies" - the Fresh Open Source Software Archive

Member "gretl-2020e/gui/gnuplot.lang" (13 Jan 2018, 5602 Bytes) of package /linux/misc/gretl-2020e.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?xml version="1.0" encoding="UTF-8"?>
    2 <!--
    3  GtkSourceView language definition file for gnuplot scripts
    4  
    5  Hacked slightly by Allin Cottrell, 2016-01-12, to make the
    6  outcome a bit less "busy". Original notice follows.
    7 
    8  Author: Andreas Gaeb, March 2010
    9  Copyright (C) 2010 Andreas Gaeb
   10 
   11  This library is free software; you can redistribute it and/or modify
   12  it under the terms of the GNU General Public License as published by
   13  the Free Software Foundation; either version 2 of the License, or
   14  (at your option) any later version.
   15 
   16  This program is distributed in the hope that it will be useful,
   17  but WITHOUT ANY WARRANTY; without even the implied warranty of
   18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   19  GNU General Public License for more details.
   20 
   21  You should have received a copy of the GNU General Public License
   22  along with this program; if not, write to the Free Software
   23  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   24 -->
   25 <language id="gnuplot" _name="GNUplot" version="2.0" _section="Scientific">
   26   <metadata>
   27     <property name="mimetypes">text/x-gnuplot</property>
   28     <property name="globs">*.plt</property>
   29     <property name="line-comment-start">#</property>
   30   </metadata>
   31 
   32   <styles>
   33     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
   34     <style id="function" _name="Function" map-to="def:function"/>
   35     <style id="options" _name="Options" map-to="def:preprocessor"/>
   36     <style id="constant" _name="Constants" map-to="def:constant"/>
   37   </styles>
   38 
   39   <definitions>
   40 
   41     <context id="keywords" style-ref="keyword">
   42         <keyword>cd|call|clear|exit|fit|if|help|history|load|pause|plot</keyword>
   43         <keyword>print|pwd|quit|replot|reread|reset|save|set|shell|show</keyword>
   44         <keyword>splot|system|test|unset|update</keyword>
   45     </context>
   46 
   47     <context id="plot_keywords" style-ref="keyword">
   48         <keyword>all|at|by|every|from|index|using|to|with|x|y|z</keyword>
   49     </context>
   50 
   51     <context id="options" style-ref="options">
   52         <keyword>angles|arrow|autoscale|bars|boxwidth|clabel|clip|cntrparam</keyword>
   53         <keyword>colorbox|contour|decimsign|dgrid3d|dummy|encoding|font|format</keyword>
   54         <keyword>grid|historysize|isosamples|key|locale|logscale|mapping</keyword>
   55         <keyword>mouse|multiplot|offsets|origin|output|palette|parametric</keyword>
   56         <keyword>pm3d|polar|print|samples|size|style|surface|terminal|ticscale</keyword>
   57         <keyword>ticslevel|timestamp|timefmt|title|view|zero|zeroaxis|label</keyword>
   58         <keyword>tics|margin|cb(label|range|data|m?tics)|[xyz]2?(range|data|label|zeroaxis)</keyword>
   59         <keyword>[blrt]margin|[rtuv]range|(no)?m?cbtics|(no)?m?[xyz]2?tics|[xyz]2?[md]tics</keyword>
   60     </context>
   61 
   62     <context id="function" style-ref="function">
   63         <keyword>abs|a?cosh?|arg|a?sinh?|a?tanh?|atan2|bes[jy][01]|ceil</keyword>
   64         <keyword>erfc?|exp|floor|[il]?gamma|ibeta|imag|int|log(10)?|rand</keyword>
   65         <keyword>real|sgn|sqrt</keyword>
   66     </context>
   67 
   68     <context id="constant" style-ref="constant">
   69         <!-- pairwise constants -->
   70         <keyword>(no)?border|(no)?labels|(no)?autotitles|(no)?filled|(no)?offset</keyword>
   71         <keyword>(no)?undefined|(no)?reverse|(no)?ratio|(no)?head|(no)?rotate|(no)?point</keyword>
   72         <keyword>(no)?box|(no)?square|(no)?mirror|(no)?verbose|(no)?altdiagonal</keyword>
   73         <keyword>(no)?ftriangles|(no)?hidden3d|(no)?bentover|(no)?enhanced|(no)?doubleclick</keyword>
   74         <keyword>(no)?zoom(jump|coordinates)|(no)?polardistance|(no)?errorvariables|(no)?pls_allcF|(no)?writeback</keyword>
   75         <!-- plot constants -->
   76         <keyword>pi|degrees|radians|default|restore|user|[lL]eft|[rR]ight</keyword>
   77         <keyword>center|top|bottom|outside|below|front|back|layerdefault</keyword>
   78         <keyword>tiny|small|medium|large|giant|absolute|relative|vertical</keyword>
   79         <keyword>horizontal|(fix)?(min|max)|(keep)?fix|on|off|begin|end</keyword>
   80         <keyword>in|out|push|pop|zero|one|two|empty|solid|pattern|linear|(cubic|b)spline</keyword>
   81         <keyword>bdefault|base|both|iso_8859_(1|2|15)|cp(850|852|437)|koi8r|cartesian</keyword>
   82         <keyword>spherical|cylindrical|gray|color|positive|negative|fill</keyword>
   83         <keyword>line(style|type|width)?|ls|lt|point(type|size)|pt|ps</keyword>
   84         <keyword>textcolor|tc|xy|xz|yz|xyz|(clipboard|mouse)format|trianglepattern|mouseoptions</keyword>
   85         <keyword>heads|arrowstyle|as|rto|boxes|filledcurves|financebars|candlesticks</keyword>
   86         <keyword>(box|boxxy|x|xy|y)errorbars|(x|xy|y)errorlines|dots|(f|hi)steps</keyword>
   87         <keyword>impulses|lines(points)?|steps|points|vectors|binary|matrix</keyword>
   88         <keyword>axis|autofreq|(load|font)path|(log|data)?file|scans(automatic|backward|forward)</keyword>
   89         <keyword>separator|corners2color|(geo)?mean|median|clip[14]in|c[1234]</keyword>
   90         <keyword>flush|(im|ex)plicit|order|auto|levels|discrete|incremental</keyword>
   91         <keyword>closed|commentschars|data|defined|font|functions?|height</keyword>
   92         <keyword>width|map|maxcolors|missing|model|rgbformulae|samplen|spacing</keyword>
   93     </context>
   94 
   95     <context id="gnuplot">
   96       <include>
   97         <context ref="def:shell-like-comment"/>
   98         <context ref="def:string"/>
   99         <context ref="def:single-quoted-string"/>
  100         <context ref="keywords"/>
  101         <context ref="plot_keywords"/>
  102         <context ref="options"/>
  103         <context ref="function"/>
  104         <context ref="constant"/>
  105       </include>
  106 
  107     </context>
  108 
  109   </definitions>
  110 
  111 </language>