codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: sinda85, sinda/fluint input file3" Maintainer: Adrian Nagle, anagle@ball.com4" Last Change: 2003 May 115" Filenames: *.sin6" URL: http://www.naglenet.org/vim/syntax/sinda.vim7" MAIN URL: http://www.naglenet.org/vim/8 9 10 11" quit when a syntax file was already loaded12if exists("b:current_syntax")13 finish14endif15 16 17 18" Ignore case19syn case ignore20 21 22 23"24"25" Begin syntax definitions for sinda input and output files.26"27 28" Force free-form fortran format29let fortran_free_source=130 31" Load FORTRAN syntax file32runtime! syntax/fortran.vim33unlet b:current_syntax34 35 36 37" Define keywords for SINDA38syn keyword sindaMacro BUILD BUILDF DEBON DEBOFF DEFMOD FSTART FSTOP39 40syn keyword sindaOptions TITLE PPSAVE RSI RSO OUTPUT SAVE QMAP USER1 USER241syn keyword sindaOptions MODEL PPOUT NOLIST MLINE NODEBUG DIRECTORIES42syn keyword sindaOptions DOUBLEPR43 44syn keyword sindaRoutine FORWRD FWDBCK STDSTL FASTIC45 46syn keyword sindaControl ABSZRO ACCELX ACCELY ACCELZ ARLXCA ATMPCA47syn keyword sindaControl BACKUP CSGFAC DRLXCA DTIMEH DTIMEI DTIMEL48syn keyword sindaControl DTIMES DTMPCA EBALNA EBALSA EXTLIM ITEROT49syn keyword sindaControl ITERXT ITHOLD NLOOPS NLOOPT OUTPUT OPEITR50syn keyword sindaControl PATMOS SIGMA TIMEO TIMEND UID51 52syn keyword sindaSubRoutine ASKERS ADARIN ADDARY ADDMOD ARINDV53syn keyword sindaSubRoutine RYINV ARYMPY ARYSUB ARYTRN BAROC54syn keyword sindaSubRoutine BELACC BNDDRV BNDGET CHENNB CHGFLD55syn keyword sindaSubRoutine CHGLMP CHGSUC CHGVOL CHKCHL CHKCHP56syn keyword sindaSubRoutine CNSTAB COMBAL COMPLQ COMPRS CONTRN57syn keyword sindaSubRoutine CPRINT CRASH CRVINT CRYTRN CSIFLX58syn keyword sindaSubRoutine CVTEMP D11CYL C11DAI D11DIM D11MCY59syn keyword sindaSubRoutine D11MDA D11MDI D11MDT D12CYL D12MCY60syn keyword sindaSubRoutine D12MDA D1D1DA D1D1IM D1D1WM D1D2DA61syn keyword sindaSubRoutine D1D2WM D1DEG1 D1DEG2 D1DG1I D1IMD162syn keyword sindaSubRoutine D1IMIM D1IMWM D1M1DA D1M2MD D1M2WM63syn keyword sindaSubRoutine D1MDG1 D1MDG2 D2D1WM D1DEG1 D2DEG264syn keyword sindaSubRoutine D2D265 66syn keyword sindaIdentifier BIV CAL DIM DIV DPM DPV DTV GEN PER PIV PIM67syn keyword sindaIdentifier SIM SIV SPM SPV TVS TVD68 69 70 71" Define matches for SINDA72syn match sindaFortran "^F[0-9 ]"me=e-173syn match sindaMotran "^M[0-9 ]"me=e-174 75syn match sindaComment "^C.*$"76syn match sindaComment "^R.*$"77syn match sindaComment "\$.*$"78 79syn match sindaHeader "^header[^,]*"80 81syn match sindaIncludeFile "include \+[^ ]\+"hs=s+8 contains=fortranInclude82 83syn match sindaMacro "^PSTART"84syn match sindaMacro "^PSTOP"85syn match sindaMacro "^FAC"86 87syn match sindaInteger "-\=\<[0-9]*\>"88syn match sindaFloat "-\=\<[0-9]*\.[0-9]*"89syn match sindaScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>"90 91syn match sindaEndData "^END OF DATA"92 93if exists("thermal_todo")94 execute 'syn match sindaTodo ' . '"^'.thermal_todo.'.*$"'95else96 syn match sindaTodo "^?.*$"97endif98 99 100 101" Define the default highlighting102" Only when an item doesn't have highlighting yet103 104hi def link sindaMacro Macro105hi def link sindaOptions Special106hi def link sindaRoutine Type107hi def link sindaControl Special108hi def link sindaSubRoutine Function109hi def link sindaIdentifier Identifier110 111hi def link sindaFortran PreProc112hi def link sindaMotran PreProc113 114hi def link sindaComment Comment115hi def link sindaHeader Typedef116hi def link sindaIncludeFile Type117hi def link sindaInteger Number118hi def link sindaFloat Float119hi def link sindaScientific Float120 121hi def link sindaEndData Macro122 123hi def link sindaTodo Todo124 125 126 127let b:current_syntax = "sinda"128 129" vim: ts=8 sw=2130 