Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
bc.vim67 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	bc - An arbitrary precision calculator language3" Maintainer:	Vladimir Scholtz <vlado@gjh.sk>4" Last change:	2012 Jun 015" 		(Dominique Pelle added @Spell)6" Available on:	www.gjh.sk/~vlado/bc.vim7 8" quit when a syntax file was already loaded9if exists("b:current_syntax")10  finish11endif12 13syn case ignore14 15" Keywords16syn keyword bcKeyword if else while for break continue return limits halt quit17syn keyword bcKeyword define18syn keyword bcKeyword length read sqrt print19 20" Variable21syn keyword bcType auto22 23" Constant24syn keyword bcConstant scale ibase obase last25syn keyword bcConstant BC_BASE_MAX BC_DIM_MAX BC_SCALE_MAX BC_STRING_MAX26syn keyword bcConstant BC_ENV_ARGS BC_LINE_LENGTH27 28" Any other stuff29syn match bcIdentifier		"[a-z_][a-z0-9_]*"30 31" String32 syn match bcString		"\"[^"]*\"" contains=@Spell33 34" Number35syn match bcNumber		"[0-9]\+"36 37" Comment38syn match bcComment		"\#.*" contains=@Spell39syn region bcComment		start="/\*" end="\*/" contains=@Spell40 41" Parent ()42syn cluster bcAll contains=bcList,bcIdentifier,bcNumber,bcKeyword,bcType,bcConstant,bcString,bcParentError43syn region bcList		matchgroup=Delimiter start="(" skip="|.\{-}|" matchgroup=Delimiter end=")" contains=@bcAll44syn region bcList		matchgroup=Delimiter start="\[" skip="|.\{-}|" matchgroup=Delimiter end="\]" contains=@bcAll45syn match bcParenError			"]"46syn match bcParenError			")"47 48 49 50syn case match51 52" Define the default highlighting.53" Only when an item doesn't have highlighting yet54 55hi def link bcKeyword		Statement56hi def link bcType		Type57hi def link bcConstant		Constant58hi def link bcNumber		Number59hi def link bcComment		Comment60hi def link bcString		String61hi def link bcSpecialChar		SpecialChar62hi def link bcParenError		Error63 64 65let b:current_syntax = "bc"66" vim: ts=867 
codekingpro/portable-devtools · Team Ai