codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: gp (version 2.15)3" Maintainer: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>4" Last change: 2023 Aug 225" URL: http://pari.math.u-bordeaux.fr6 7" quit when a syntax file was already loaded8if exists("b:current_syntax")9 finish10endif11 12let s:cpo_save = &cpo13set cpo&vim14 15" control statements16syntax keyword gpStatement break return next17syntax keyword gpConditional if iferr18syntax keyword gpRepeat until while for forcomposite fordiv19syntax keyword gpRepeat fordivfactored foreach forell forfactored20syntax keyword gpRepeat forpart forperm forprime forprimestep forqfvec21syntax keyword gpRepeat forsquarefree forstep forsubgroup forsubset22syntax keyword gpRepeat forvec23syntax keyword gpRepeat parfor parforeach parforprime parforprimestep24syntax keyword gpRepeat parforvec25" storage class26syntax keyword gpScope my local global export exportall27" defaults28syntax keyword gpInterfaceKey breakloop colors compatible29syntax keyword gpInterfaceKey datadir debug debugfiles debugmem30syntax keyword gpInterfaceKey echo factor_add_primes factor_proven format31syntax keyword gpInterfaceKey graphcolormap graphcolors32syntax keyword gpInterfaceKey help histfile histsize33syntax keyword gpInterfaceKey lines linewrap log logfile nbthreads34syntax keyword gpInterfaceKey new_galois_format output parisize parisizemax35syntax keyword gpInterfaceKey path plothsizes prettyprinter primelimit prompt36syntax keyword gpInterfaceKey prompt_cont psfile readline realbitprecision37syntax keyword gpInterfaceKey realprecision recover secure seriesprecision38syntax keyword gpInterfaceKey simplify sopath strictmatch TeXstyle39syntax keyword gpInterfaceKey threadsize threadsizemax timer40 41syntax match gpInterface "^\s*\\[a-z].*"42syntax keyword gpInterface default43syntax keyword gpInput read input44 45" functions46syntax match gpFunRegion "^\s*[a-zA-Z][_a-zA-Z0-9]*(.*)\s*=\s*[^ \t=]"me=e-1 contains=gpFunction,gpArgs47syntax match gpFunRegion "^\s*[a-zA-Z][_a-zA-Z0-9]*(.*)\s*=\s*$" contains=gpFunction,gpArgs48syntax match gpArgs contained "[a-zA-Z][_a-zA-Z0-9]*"49syntax match gpFunction contained "^\s*[a-zA-Z][_a-zA-Z0-9]*("me=e-150 51" String and Character constants52" Highlight special (backslash'ed) characters differently53syntax match gpSpecial contained "\\[ent\\]"54syntax region gpString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=gpSpecial55 56"comments57syntax region gpComment start="/\*" end="\*/" contains=gpTodo58syntax match gpComment "\\\\.*" contains=gpTodo59syntax keyword gpTodo contained TODO60syntax sync ccomment gpComment minlines=1061 62"catch errors caused by wrong parenthesis63syntax region gpParen transparent start='(' end=')' contains=ALLBUT,gpParenError,gpTodo,gpFunction,gpArgs,gpSpecial64syntax match gpParenError ")"65syntax match gpInParen contained "[{}]"66 67hi def link gpConditional Conditional68hi def link gpRepeat Repeat69hi def link gpError Error70hi def link gpParenError gpError71hi def link gpInParen gpError72hi def link gpStatement Statement73hi def link gpString String74hi def link gpComment Comment75hi def link gpInterface Type76hi def link gpInput Type77hi def link gpInterfaceKey Statement78hi def link gpFunction Function79hi def link gpScope Type80" contained ones81hi def link gpSpecial Special82hi def link gpTodo Todo83hi def link gpArgs Type84 85let b:current_syntax = "gp"86let &cpo = s:cpo_save87unlet s:cpo_save88" vim: ts=889 