home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / OpenLinux 2.3 CD.iso / live / usr / share / vim / syntax / xmath.vim < prev    next >
Encoding:
Text File  |  1999-08-10  |  10.3 KB  |  219 lines

  1. " Vim syntax file
  2. " Language:    xmath (a simulation tool)
  3. " Maintainer:    Dr. Charles E. Campbell, Jr. <Charles.Campbell@gsfc.nasa.gov>
  4. " Last change:    December 3, 1997
  5.  
  6. " Remove any old syntax stuff hanging around
  7. syn clear
  8.  
  9. " parenthesis sanity checker
  10. syn region xmathZone    matchgroup=Delimiter start="(" matchgroup=Delimiter end=")" transparent contains=ALLBUT,xmathError,xmathBraceError,xmathCurlyError
  11. syn region xmathZone    matchgroup=Delimiter start="{" matchgroup=Delimiter end="}" transparent contains=ALLBUT,xmathError,xmathBraceError,xmathParenError
  12. syn region xmathZone    matchgroup=Delimiter start="\[" matchgroup=Delimiter end="]" transparent contains=ALLBUT,xmathError,xmathCurlyError,xmathParenError
  13. syn match  xmathError    "[)\]}]"
  14. syn match  xmathBraceError    "[)}]"    contained
  15. syn match  xmathCurlyError    "[)\]]"    contained
  16. syn match  xmathParenError    "[\]}]"    contained
  17. syn match  xmathComma    "[,;:]"
  18. syn match  xmathComma    "\.\.\.$"
  19.  
  20. " A bunch of useful xmath keywords
  21. syn case ignore
  22. syn keyword xmathFuncCmd    function    endfunction    command    endcommand
  23. syn keyword xmathStatement    abort    beep    debug    default    define
  24. syn keyword xmathStatement    execute    exit    pause    return    undefine
  25. syn keyword xmathConditional    if    else    elseif    endif
  26. syn keyword xmathRepeat    while    for    endwhile    endfor
  27. syn keyword xmathCmd    anigraph    deletedatastore    keep    renamedatastore
  28. syn keyword xmathCmd    autocode    deletestd    linkhyper    renamestd
  29. syn keyword xmathCmd    build    deletesuperblock    linksim    renamesuperblock
  30. syn keyword xmathCmd    comment    deletetransition    listusertype    save
  31. syn keyword xmathCmd    copydatastore    deleteusertype    load    sbadisplay
  32. syn keyword xmathCmd    copystd    detailmodel    lock    set
  33. syn keyword xmathCmd    copysuperblock    display    minmax_display    setsbdefault
  34. syn keyword xmathCmd    createblock    documentit    modifyblock    show
  35. syn keyword xmathCmd    createbubble    editcatalog    modifybubble    showlicense
  36. syn keyword xmathCmd    createconnection    erase    modifystd    showsbdefault
  37. syn keyword xmathCmd    creatertf    expandsuperbubble    modifysuperblock    stop
  38. syn keyword xmathCmd    createstd    for    modifytransition    stopcosim
  39. syn keyword xmathCmd    createsuperblock    go    modifyusertype    syntax
  40. syn keyword xmathCmd    createsuperbubble    goto    new    unalias
  41. syn keyword xmathCmd    createtransition    hardcopy    next    unlock
  42. syn keyword xmathCmd    createusertype    help    polargraph    usertype
  43. syn keyword xmathCmd    delete    hyperbuild    print    whatis
  44. syn keyword xmathCmd    deleteblock    if    printmodel    while
  45. syn keyword xmathCmd    deletebubble    ifilter    quit    who
  46. syn keyword xmathCmd    deleteconnection    ipcwc    remove    xgraph
  47.  
  48. syn keyword xmathFunc    abcd    eye    irea    querystdoptions
  49. syn keyword xmathFunc    abs    eyepattern    is    querysuperblock
  50. syn keyword xmathFunc    acos    feedback    ISID    querysuperblockopt
  51. syn keyword xmathFunc    acosh    fft    ISID    Models    querytransition
  52. syn keyword xmathFunc    adconversion    fftpdm    kronecker    querytransitionopt
  53. syn keyword xmathFunc    afeedback    filter    length    qz
  54. syn keyword xmathFunc    all    find    limit    rampinvar
  55. syn keyword xmathFunc    ambiguity    firparks    lin    random
  56. syn keyword xmathFunc    amdemod    firremez    lin30    randpdm
  57. syn keyword xmathFunc    analytic    firwind    linearfm    randpert
  58. syn keyword xmathFunc    analyze    fmdemod    linfnorm    randsys
  59. syn keyword xmathFunc    any    forwdiff    lintodb    rank
  60. syn keyword xmathFunc    append    fprintf    list    rayleigh
  61. syn keyword xmathFunc    argn    frac    log    rcepstrum
  62. syn keyword xmathFunc    argv    fracred    log10    rcond
  63. syn keyword xmathFunc    arma    freq    logm    rdintegrate
  64. syn keyword xmathFunc    arma2ss    freqcircle    lognormal    read
  65. syn keyword xmathFunc    armax    freqcont    logspace    real
  66. syn keyword xmathFunc    ascii    frequencyhop    lowpass    rectify
  67. syn keyword xmathFunc    asin    fsesti    lpopt    redschur
  68. syn keyword xmathFunc    asinh    fslqgcomp    lqgcomp    reflect
  69. syn keyword xmathFunc    atan    fsregu    lqgltr    regulator
  70. syn keyword xmathFunc    atan2    fwls    ls    residue
  71. syn keyword xmathFunc    atanh    gabor    ls2unc    riccati
  72. syn keyword xmathFunc    attach_ac100    garb    ls2var    riccati_eig
  73. syn keyword xmathFunc    backdiff    gaussian    lsjoin    riccati_schur
  74. syn keyword xmathFunc    balance    gcexp    lu    ricean
  75. syn keyword xmathFunc    balmoore    gcos    lyapunov    rifd
  76. syn keyword xmathFunc    bandpass    gdfileselection    makecontinuous    rlinfo
  77. syn keyword xmathFunc    bandstop    gdmessage    makematrix    rlocus
  78. syn keyword xmathFunc    bj    gdselection    makepoly    rms
  79. syn keyword xmathFunc    blknorm    genconv    margin    rootlocus
  80. syn keyword xmathFunc    bode    get    markoff    roots
  81. syn keyword xmathFunc    bpm    get_info30    matchedpz    round
  82. syn keyword xmathFunc    bpm2inn    get_inn    max    rref
  83. syn keyword xmathFunc    bpmjoin    gfdm    maxlike    rve_get
  84. syn keyword xmathFunc    bpmsplit    gfsk    mean    rve_info
  85. syn keyword xmathFunc    bst    gfskernel    mergeseg    rve_reset
  86. syn keyword xmathFunc    buttconstr    gfunction    min    rve_update
  87. syn keyword xmathFunc    butterworth    ggauss    minimal    samplehold
  88. syn keyword xmathFunc    cancel    giv    mkpert    schur
  89. syn keyword xmathFunc    canform    giv2var    mkphase    sdf
  90. syn keyword xmathFunc    ccepstrum    givjoin    mma    sds
  91. syn keyword xmathFunc    char    gpsk    mmaget    sdtrsp
  92. syn keyword xmathFunc    chebconstr    gpulse    mmaput    sec
  93. syn keyword xmathFunc    chebyshev    gqam    mod    sech
  94. syn keyword xmathFunc    check    gqpsk    modal    siginterp
  95. syn keyword xmathFunc    cholesky    gramp    modalstate    sign
  96. syn keyword xmathFunc    chop    gsawtooth    modcarrier    sim
  97. syn keyword xmathFunc    circonv    gsigmoid    mreduce    sim30
  98. syn keyword xmathFunc    circorr    gsin    mtxplt    simin
  99. syn keyword xmathFunc    clock    gsinc    mu    simin30
  100. syn keyword xmathFunc    clocus    gsqpsk    mulhank    simout
  101. syn keyword xmathFunc    clsys    gsquarewave    multipath    simout30
  102. syn keyword xmathFunc    coherence    gstep    musynfit    simtransform
  103. syn keyword xmathFunc    colorind    GuiDialogCreate    mxstr2xmstr    sin
  104. syn keyword xmathFunc    combinepf    GuiDialogDestroy    mxstring2xmstring    singriccati
  105. syn keyword xmathFunc    commentof    GuiFlush    names    sinh
  106. syn keyword xmathFunc    compare    GuiGetValue    nichols    sinm
  107. syn keyword xmathFunc    complementaryerf    GuiManage    noisefilt    size
  108. syn keyword xmathFunc    complexenvelope    GuiPlot    none    smargin
  109. syn keyword xmathFunc    complexfreqshift    GuiPlotGet    norm    sns2sys
  110. syn keyword xmathFunc    concatseg    GuiSetValue    numden    sort
  111. syn keyword xmathFunc    condition    GuiShellCreate    nyquist    spectrad
  112. syn keyword xmathFunc    conj    GuiShellDeiconify    obscf    spectrum
  113. syn keyword xmathFunc    conmap    GuiShellDestroy    observable    spline
  114. syn keyword xmathFunc    connect    GuiShellIconify    oe    sprintf
  115. syn keyword xmathFunc    conpdm    GuiShellLower    ones    sqrt
  116. syn keyword xmathFunc    constellation    GuiShellRaise    ophank    sqrtm
  117. syn keyword xmathFunc    consys    GuiShellRealize    optimize    sresidualize
  118. syn keyword xmathFunc    controllable    GuiShellUnrealize    optscale    ss2arma
  119. syn keyword xmathFunc    convolve    GuiTimer    orderfilt    sst
  120. syn keyword xmathFunc    correlate    GuiToolCreate    orderstate    ssv
  121. syn keyword xmathFunc    cos    GuiToolDestroy    orth    stable
  122. syn keyword xmathFunc    cosh    GuiToolExist    oscmd    stair
  123. syn keyword xmathFunc    cosm    GuiUnmanage    oscope    starp
  124. syn keyword xmathFunc    cot    GuiWidgetExist    osscale    step
  125. syn keyword xmathFunc    coth    h2norm    padcrop    stepinvar
  126. syn keyword xmathFunc    covariance    h2syn    partialsum    string
  127. syn keyword xmathFunc    csc    hadamard    pdm    stringex
  128. syn keyword xmathFunc    csch    hankelsv    pdmslice    substr
  129. syn keyword xmathFunc    csum    hessenberg    pem    subsys
  130. syn keyword xmathFunc    ctrcf    highpass    perfplots    sum
  131. syn keyword xmathFunc    ctrlplot    hilbert    period    svd
  132. syn keyword xmathFunc    daug    hilberttransform    pfscale    svplot
  133. syn keyword xmathFunc    dbtolin    hinfcontr    phaseshift    sweep
  134. syn keyword xmathFunc    dct    hinfnorm    pinv    symbolmap
  135. syn keyword xmathFunc    decimate    hinfsyn    plot    sys2sns
  136. syn keyword xmathFunc    defFreqRange    histogram    plot30    sysic
  137. syn keyword xmathFunc    defTimeRange    idfreq    pmdemod    Sysid
  138. syn keyword xmathFunc    delay    idimpulse    poisson    system
  139. syn keyword xmathFunc    delsubstr    idsim    poissonimpulse    tan
  140. syn keyword xmathFunc    det    ifft    poleplace    tanh
  141. syn keyword xmathFunc    detrend    imag    poles    taper
  142. syn keyword xmathFunc    dht    impinvar    polezero    tfid
  143. syn keyword xmathFunc    diagonal    impplot    poltrend    toeplitz
  144. syn keyword xmathFunc    differentiate    impulse    polyfit    trace
  145. syn keyword xmathFunc    directsequence    index    polynomial    tril
  146. syn keyword xmathFunc    discretize    indexlist    polyval    trim
  147. syn keyword xmathFunc    divide    initial    polyvalm    trim30
  148. syn keyword xmathFunc    domain    initmodel    prbs    triu
  149. syn keyword xmathFunc    dst    initx0    product    trsp
  150. syn keyword xmathFunc    eig    inn2bpm    psd    truncate
  151. syn keyword xmathFunc    ellipconstr    inn2pe    put_inn    tustin
  152. syn keyword xmathFunc    elliptic    inn2unc    qpopt    uniform
  153. syn keyword xmathFunc    erf    insertseg    qr    val
  154. syn keyword xmathFunc    error    int    quantize    variance
  155. syn keyword xmathFunc    estimator    integrate    queryblock    videolines
  156. syn keyword xmathFunc    etfe    integratedump    queryblockoptions    wcbode
  157. syn keyword xmathFunc    exist    interp    querybubble    wcgain
  158. syn keyword xmathFunc    exp    interpolate    querybubbleoptionswindow
  159. syn keyword xmathFunc    expm    inv    querycatalog    wtbalance
  160. syn keyword xmathFunc    extractchan    invhilbert    queryconnection    zeros
  161. syn keyword xmathFunc    extractseg    iqmix    querystd
  162.  
  163. syn case match
  164.  
  165. " Labels (supports xmath's goto)
  166. syn match   xmathLabel             "^\s*<[a-zA-Z_][a-zA-Z0-9]*>"
  167.  
  168. " String and Character constants
  169. " Highlight special characters (those which have a backslash) differently
  170. syn match   xmathSpecial    contained "\\\d\d\d\|\\."
  171. syn region  xmathString    start=+"+  skip=+\(\\\\\)*\\"+  end=+"+ contains=xmathSpecial
  172. syn match   xmathCharacter    "'[^\\]'"
  173. syn match   xmathSpecialChar    "'\\.'"
  174.  
  175. syn match   xmathNumber    "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
  176.  
  177. " Comments:
  178. " xmath supports #...  (like Unix shells)
  179. "       and      #{ ... }# comment blocks
  180. syn keyword xmathTodo contained    TODO Todo DEBUG
  181. syn match   xmathComment    "#.*$"        contains=xmathString,xmathTodo
  182. syn region  xmathCommentBlock    start="#{" end="}#"    contains=xmathString,xmathTodo
  183.  
  184. " synchronizing
  185. syn sync match xmathSyncComment    grouphere xmathCommentBlock "#{"
  186. syn sync match xmathSyncComment    groupthere NONE "}#"
  187.  
  188. if !exists("did_xmath_syntax_inits")
  189.   let did_xmath_syntax_inits = 1
  190.  
  191.   hi link xmathBraceError    xmathError
  192.   hi link xmathCmd    xmathStatement
  193.   hi link xmathCommentBlock    xmathComment
  194.   hi link xmathCurlyError    xmathError
  195.   hi link xmathFuncCmd    xmathStatement
  196.   hi link xmathParenError    xmathError
  197.  
  198.   " The default methods for highlighting.  Can be overridden later
  199.   hi link xmathCharacter    Character
  200.   hi link xmathComma    Delimiter
  201.   hi link xmathComment    Comment
  202.   hi link xmathCommentBlock    Comment
  203.   hi link xmathConditional    Conditional
  204.   hi link xmathError    Error
  205.   hi link xmathFunc    Function
  206.   hi link xmathLabel    PreProc
  207.   hi link xmathNumber    Number
  208.   hi link xmathRepeat    Repeat
  209.   hi link xmathSpecial    Type
  210.   hi link xmathSpecialChar    SpecialChar
  211.   hi link xmathStatement    Statement
  212.   hi link xmathString    String
  213.   hi link xmathTodo    Todo
  214. endif
  215.  
  216. let b:current_syntax = "xmath"
  217.  
  218. " vim: ts=17
  219.