📄 maple.vim
字号:
" Vim syntax file" Language: Maple V (based on release 4)" Maintainer: Dr. Charles E. Campbell, Jr. <Charles.E.Campbell.1@gsfc.nasa.gov>" Last Change: October 16, 1998"" Because there are a lot of packages, and because of the potential for namespace" clashes, this version of <maple.vim> needs the user to select which, if any," package functions should be highlighted. Select your packages and put into your" <.vimrc> none or more of the lines following let ...=1 lines:"" if exists("mvpkg_all")" ..." endif"" *OR* let mvpkg_all=1" For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600 syntax clearelseif exists("b:current_syntax") finishendifif version < 600 set iskeyword=$,48-57,_,a-z,@-Zelse setlocal iskeyword=$,48-57,_,a-z,@-Zendif" allow user to simply select all packages for highlightingif exists("mvpkg_all") let mv_DEtools = 1 let mv_Galois = 1 let mv_GaussInt = 1 let mv_LREtools = 1 let mv_combinat = 1 let mv_combstruct = 1 let mv_difforms = 1 let mv_finance = 1 let mv_genfunc = 1 let mv_geometry = 1 let mv_grobner = 1 let mv_group = 1 let mv_inttrans = 1 let mv_liesymm = 1 let mv_linalg = 1 let mv_logic = 1 let mv_networks = 1 let mv_numapprox = 1 let mv_numtheory = 1 let mv_orthopoly = 1 let mv_padic = 1 let mv_plots = 1 let mv_plottools = 1 let mv_powseries = 1 let mv_process = 1 let mv_simplex = 1 let mv_stats = 1 let mv_student = 1 let mv_sumtools = 1 let mv_tensor = 1 let mv_totorder = 1endif" parenthesis/curly/brace sanity checkersyn region mvZone matchgroup=Delimiter start="(" matchgroup=Delimiter end=")" transparent contains=ALLBUT,mvError,mvBraceError,mvCurlyErrorsyn region mvZone matchgroup=Delimiter start="{" matchgroup=Delimiter end="}" transparent contains=ALLBUT,mvError,mvBraceError,mvParenErrorsyn region mvZone matchgroup=Delimiter start="\[" matchgroup=Delimiter end="]" transparent contains=ALLBUT,mvError,mvCurlyError,mvParenErrorsyn match mvError "[)\]}]"syn match mvBraceError "[)}]" containedsyn match mvCurlyError "[)\]]" containedsyn match mvParenError "[\]}]" containedsyn match mvComma "[,;:]"syn match mvSemiError "[;:]" contained" Maple V Packages, circa Release 4syn keyword mvPackage DEtools difforms group networks plots statssyn keyword mvPackage Galois finance inttrans numapprox plottools studentsyn keyword mvPackage GaussInt genfunc liesymm numtheory powseries sumtoolssyn keyword mvPackage LREtools geometry linalg orthopoly process tensorsyn keyword mvPackage combinat grobner logic padic simplex totordersyn keyword mvPackage combstruct" Language Supportsyn keyword mvTodo contained TODOsyn region mvString start=+`+ skip=+``+ end=+`+ keepend contains=mvTodosyn region mvDelayEval start=+'+ end=+'+ keepend contains=ALLBUT,mvError,mvBraceError,mvCurlyError,mvParenError,mvSemiErrorsyn match mvVarAssign "[a-zA-Z_][a-zA-Z_0-9]*[ \t]*:=" contains=mvAssignsyn match mvAssign ":=" contained" Lower-Priority Operatorssyn match mvOper "\."" Number handlingsyn match mvNumber "\<\d\+" " integer syn match mvNumber "[-+]\=\.\d\+" " . integersyn match mvNumber "\<\d\+\.\d\+" " integer . integersyn match mvNumber "\<\d\+\." " integer .syn match mvNumber "\<\d\+\.\." contains=mvRange " integer ..syn match mvNumber "\<\d\+e[-+]\=\d\+" " integer e [-+] integersyn match mvNumber "[-+]\=\.\d\+e[-+]\=\d\+" " . integer e [-+] integersyn match mvNumber "\<\d\+\.\d*e[-+]\=\d\+" " integer . [integer] e [-+] integersyn match mvNumber "[-+]\d\+" " integersyn match mvNumber "[-+]\d\+\.\d\+" " integer . integersyn match mvNumber "[-+]\d\+\." " integer .syn match mvNumber "[-+]\d\+\.\." contains=mvRange " integer ..syn match mvNumber "[-+]\d\+e[-+]\=\d\+" " integer e [-+] integersyn match mvNumber "[-+]\d\+\.\d*e[-+]\=\d\+" " integer . [integer] e [-+] integersyn match mvRange "\.\."" Operatorssyn keyword mvOper and not orsyn match mvOper "<>\|[<>]=\|[<>]\|="syn match mvOper "&+\|&-\|&\*\|&\/\|&"syn match mvError "\.\.\."" MapleV Statements: ? statement" Split into booleans, conditionals, operators, repeat-logic, etcsyn keyword mvBool true falsesyn keyword mvCond elif else fi if thensyn keyword mvRepeat by for in tosyn keyword mvRepeat do from od whilesyn keyword mvSpecial NULLsyn match mvSpecial "\[\]\|{}"syn keyword mvStatement Order fail options read savesyn keyword mvStatement break local point remember stopsyn keyword mvStatement done mod proc restart withsyn keyword mvStatement end mods quit returnsyn keyword mvStatement error next" Builtin Constants: ? constantssyn keyword mvConstant Catalan I gamma infinitysyn keyword mvConstant FAIL Pi" Comments: DEBUG, if in a comment, is specially highlighted.syn keyword mvDebug contained DEBUGsyn cluster mvCommentGroup contains=mvTodo,mvDebugsyn match mvComment "#.*$" contains=@mvCommentGroup" Basic Library Functions: ? index[function]syn keyword mvLibrary $ @ @@ ERRORsyn keyword mvLibrary AFactor KelvinHer arctan factor log rhssyn keyword mvLibrary AFactors KelvinKei arctanh factors log10 rootsyn keyword mvLibrary AiryAi KelvinKer argument fclose lprint rootssyn keyword mvLibrary AiryBi LambertW array feof map roundsyn keyword mvLibrary AngerJ Lcm assign fflush map2 rsolvesyn keyword mvLibrary Berlekamp LegendreE assigned filepos match savelibsyn keyword mvLibrary BesselI LegendreEc asspar fixdiv matrix scanfsyn keyword mvLibrary BesselJ LegendreEc1 assume float max searchtextsyn keyword mvLibrary BesselK LegendreF asubs floor maximize secsyn keyword mvLibrary BesselY LegendreKc asympt fnormal maxnorm sechsyn keyword mvLibrary Beta LegendreKc1 attribute fopen maxorder selectsyn keyword mvLibrary C LegendrePi bernstein forget member seqsyn keyword mvLibrary Chi LegendrePic branches fortran min seriessyn keyword mvLibrary Ci LegendrePic1 bspline fprintf minimize setattributesyn keyword mvLibrary CompSeq Li cat frac minpoly shakesyn keyword mvLibrary Content Linsolve ceil freeze modp showprofilesyn keyword mvLibrary D MOLS chrem fremove modp1 showtimesyn keyword mvLibrary DESol Maple_floats close frontend modp2 signsyn keyword mvLibrary Det MeijerG close fscanf modpol signumsyn keyword mvLibrary Diff Norm coeff fsolve mods simplifysyn keyword mvLibrary Dirac Normal coeffs galois msolve sinsyn keyword mvLibrary DistDeg Nullspace coeftayl gc mtaylor singularsyn keyword mvLibrary Divide Power collect gcd mul sinhsyn keyword mvLibrary Ei Powmod combine gcdex nextprime sinterpsyn keyword mvLibrary Eigenvals Prem commutat genpoly nops solvesyn keyword mvLibrary EllipticCE Primfield comparray harmonic norm sortsyn keyword mvLibrary EllipticCK Primitive compoly has normal sparsesyn keyword mvLibrary EllipticCPi Primpart conjugate hasfun numboccur splinesyn keyword mvLibrary EllipticE ProbSplit content hasoption numer splitsyn keyword mvLibrary EllipticF Product convergs hastype op splitssyn keyword mvLibrary EllipticK Psi convert heap open spremsyn keyword mvLibrary EllipticModulus Quo coords history optimize sprintfsyn keyword mvLibrary EllipticNome RESol copy hypergeom order sqrfreesyn keyword mvLibrary EllipticPi Randpoly cos iFFT parse sqrtsyn keyword mvLibrary Eval Randprime cosh icontent pclose sscanfsyn keyword mvLibrary Expand Ratrecon cost identity pclose ssystemsyn keyword mvLibrary FFT Re cot igcd pdesolve stacksyn keyword mvLibrary Factor Rem coth igcdex piecewise sturmsyn keyword mvLibrary Factors Resultant csc ilcm plot sturmseqsyn keyword mvLibrary FresnelC RootOf csch ilog plot3d subssyn keyword mvLibrary FresnelS Roots csgn ilog10 plotsetup subsopsyn keyword mvLibrary Fresnelf SPrem dawson implicitdiff pochhammer substringsyn keyword mvLibrary Fresnelg Searchtext define indets pointto sumsyn keyword mvLibrary Frobenius Shi degree index poisson surdsyn keyword mvLibrary GAMMA Si denom indexed polar symmdiffsyn keyword mvLibrary GaussAGM Smith depends indices polylog symmetricsyn keyword mvLibrary Gaussejord Sqrfree diagonal inifcn polynom systemsyn keyword mvLibrary Gausselim Ssi diff ininame powmod tablesyn keyword mvLibrary Gcd StruveH dilog initialize prem tansyn keyword mvLibrary Gcdex StruveL dinterp insert prevprime tanhsyn keyword mvLibrary HankelH1 Sum disassemble int primpart testeqsyn keyword mvLibrary HankelH2 Svd discont interface print testfloatsyn keyword mvLibrary Heaviside TEXT discrim interp printf thawsyn keyword mvLibrary Hermite Trace dismantle invfunc procbody thielesyn keyword mvLibrary Im WeberE divide invztrans procmake timesyn keyword mvLibrary Indep WeierstrassP dsolve iostatus product translatesyn keyword mvLibrary Interp WeierstrassPPrime eliminate iperfpow proot traperrorsyn keyword mvLibrary Inverse WeierstrassSigma ellipsoid iquo property trigsubssyn keyword mvLibrary Irreduc WeierstrassZeta entries iratrecon protect truncsyn keyword mvLibrary Issimilar Zeta eqn irem psqrt typesyn keyword mvLibrary JacobiAM abs erf iroot quo typematchsyn keyword mvLibrary JacobiCD add erfc irreduc radnormal unamessyn keyword mvLibrary JacobiCN addcoords eulermac iscont radsimp unapplysyn keyword mvLibrary JacobiCS addressof eval isdifferentiable rand unassignsyn keyword mvLibrary JacobiDC algebraic evala isolate randomize unloadsyn keyword mvLibrary JacobiDN algsubs evalapply ispoly randpoly unprotectsyn keyword mvLibrary JacobiDS alias evalb isqrfree range updatesR4syn keyword mvLibrary JacobiNC allvalues evalc isqrt rationalize userinfosyn keyword mvLibrary JacobiND anames evalf issqr ratrecon valuesyn keyword mvLibrary JacobiNS antisymm evalfint latex readbytes vectorsyn keyword mvLibrary JacobiSC applyop evalgf lattice readdata verifysyn keyword mvLibrary JacobiSD arccos evalhf lcm readlib whattypesyn keyword mvLibrary JacobiSN arccosh evalm lcoeff readline withsyn keyword mvLibrary JacobiTheta1 arccot evaln leadterm readstat writebytessyn keyword mvLibrary JacobiTheta2 arccoth evalr length realroot writedatasyn keyword mvLibrary JacobiTheta3 arccsc exp lexorder recipoly writelinesyn keyword mvLibrary JacobiTheta4 arccsch expand lhs rem writestatsyn keyword mvLibrary JacobiZeta arcsec expandoff limit remove writetosyn keyword mvLibrary KelvinBei arcsech expandon ln residue zipsyn keyword mvLibrary KelvinBer arcsin extract lnGAMMA resultant ztranssyn keyword mvLibrary KelvinHei arcsinh" == PACKAGES =======================================================" Note: highlighting of package functions is now user-selectable by package." Package: DEtools differential equations toolsif exists("mv_DEtools") syn keyword mvPkg_DEtools DEnormal Dchangevar autonomous dfieldplot reduceOrder untranslate syn keyword mvPkg_DEtools DEplot PDEchangecoords convertAlg indicialeq regularsp varparam syn keyword mvPkg_DEtools DEplot3d PDEplot convertsys phaseportrait translateendif" Package: Domains: create domains of computationif exists("mv_Domains")endif" Package: GF: Galois Fieldsif exists("mv_GF") syn keyword mvPkg_Galois galoisendif" Package: GaussInt: Gaussian Integersif exists("mv_GaussInt") syn keyword mvPkg_GaussInt GIbasis GIfactor GIissqr GInorm GIquadres GIsmith syn keyword mvPkg_GaussInt GIchrem GIfactors GIlcm GInormal GIquo GIsqrfree syn keyword mvPkg_GaussInt GIdivisor GIgcd GImcmbine GIorder GIrem GIsqrt syn keyword mvPkg_GaussInt GIfacpoly GIgcdex GInearest GIphi GIroots GIunitnormal syn keyword mvPkg_GaussInt GIfacset GIhermite GInodiv GIprime GIsieveendif" Package: LREtools: manipulate linear recurrence relationsif exists("mv_LREtools") syn keyword mvPkg_LREtools REcontent REprimpart REtodelta delta hypergeomsols ratpolysols syn keyword mvPkg_LREtools REcreate REreduceorder REtoproc dispersion polysols shift syn keyword mvPkg_LREtools REplot REtoDE constcoeffsolendif" Package: combinat: combinatorial functionsif exists("mv_combinat") syn keyword mvPkg_combinat Chi composition graycode numbcomb permute randperm syn keyword mvPkg_combinat bell conjpart inttovec numbcomp powerset stirling1 syn keyword mvPkg_combinat binomial decodepart lastpart numbpart prevpart stirling2 syn keyword mvPkg_combinat cartprod encodepart multinomial numbperm randcomb subsets syn keyword mvPkg_combinat character fibonacci nextpart partition randpart vectoint syn keyword mvPkg_combinat choose firstpartendif" Package: combstruct: combinatorial structuresif exists("mv_combstruct") syn keyword mvPkg_combstruct allstructs draw iterstructs options specification structures syn keyword mvPkg_combstruct count finished nextstructendif" Package: difforms: differential formsif exists("mv_difforms") syn keyword mvPkg_difforms const defform formpart parity scalarpart wdegree syn keyword mvPkg_difforms d form mixpar scalar simpform wedgeendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -