Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
grads.vim74 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	grads (GrADS scripts)3" Maintainer:	Stefan Fronzek (sfronzek at gmx dot net)4" Last change: 13 Feb 20045 6" Grid Analysis and Display System (GrADS); http://grads.iges.org/grads7" This syntax file defines highlighting for only very few features of8" the GrADS scripting language.9 10" quit when a syntax file was already loaded11if exists("b:current_syntax")12  finish13endif14 15" GrADS is entirely case-insensitive.16syn case ignore17 18" The keywords19 20syn keyword gradsStatement	if else endif break exit return21syn keyword gradsStatement	while endwhile say prompt pull function22syn keyword gradsStatement subwrd sublin substr read write close23" String24 25syn region gradsString		start=+'+ end=+'+26 27" Integer number28syn match  gradsNumber		"[+-]\=\<[0-9]\+\>"29 30" Operator31 32"syn keyword gradsOperator	| ! % & != >=33"syn match gradsOperator		"[^\.]not[^a-zA-Z]"34 35" Variables36 37syn keyword gradsFixVariables	lat lon lev result rec rc38syn match gradsglobalVariables	"_[a-zA-Z][a-zA-Z0-9]*"39syn match gradsVariables		"[a-zA-Z][a-zA-Z0-9]*"40syn match gradsConst		"#[A-Z][A-Z_]+"41 42" Comments43 44syn match gradsComment	"\*.*"45 46" Typical Typos47 48" for C programmers:49" syn match gradsTypos	"=="50" syn match gradsTypos	"!="51 52" Define the default highlighting.53" Only when an item doesn't hgs highlighting+yet54 55hi def link gradsStatement		Statement56 57hi def link gradsString		String58hi def link gradsNumber		Number59 60hi def link gradsFixVariables	Special61hi def link gradsVariables		Identifier62hi def link gradsglobalVariables	Special63hi def link gradsConst		Special64 65hi def link gradsClassMethods	Function66 67hi def link gradsOperator		Operator68hi def link gradsComment		Comment69 70hi def link gradsTypos		Error71 72 73let b:current_syntax = "grads"74 
codekingpro/portable-devtools · Team Ai