Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
mel.vim109 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	MEL (Maya Extension Language)3" Maintainer:	Robert Minsk <egbert@centropolisfx.com>4" Last Change:	May 27 19995" Based on:	Bram Moolenaar <Bram@vim.org> C syntax file6 7" quit when a syntax file was already loaded8if exists("b:current_syntax")9  finish10endif11 12" when wanted, highlight trailing white space and spaces before tabs13if exists("mel_space_errors")14  sy match	melSpaceError	"\s\+$"15  sy match	melSpaceError	" \+\t"me=e-116endif17 18" A bunch of usefull MEL keyworks19sy keyword	melBoolean	true false yes no on off20 21sy keyword	melFunction	proc22sy match	melIdentifier	"\$\(\a\|_\)\w*"23 24sy keyword	melStatement	break continue return25sy keyword	melConditional	if else switch26sy keyword	melRepeat	while for do in27sy keyword	melLabel	case default28sy keyword	melOperator	size eval env exists whatIs29sy keyword	melKeyword	alias30sy keyword	melException	catch error warning31 32sy keyword	melInclude	source33 34sy keyword	melType		int float string vector matrix35sy keyword	melStorageClass	global36 37sy keyword	melDebug	trace38 39sy keyword	melTodo		contained TODO FIXME XXX40 41" MEL data types42sy match	melCharSpecial	contained "\\[ntr\\"]"43sy match	melCharError	contained "\\[^ntr\\"]"44 45sy region	melString	start=+"+ skip=+\\"+ end=+"+ contains=melCharSpecial,melCharError46 47sy case ignore48sy match	melInteger	"\<\d\+\(e[-+]\=\d\+\)\=\>"49sy match	melFloat	"\<\d\+\(e[-+]\=\d\+\)\=f\>"50sy match	melFloat	"\<\d\+\.\d*\(e[-+]\=\d\+\)\=f\=\>"51sy match	melFloat	"\.\d\+\(e[-+]\=\d\+\)\=f\=\>"52sy case match53 54sy match	melCommaSemi	contained "[,;]"55sy region	melMatrixVector	start=/<</ end=/>>/ contains=melInteger,melFloat,melIdentifier,melCommaSemi56 57sy cluster	melGroup	contains=melFunction,melStatement,melConditional,melLabel,melKeyword,melStorageClass,melTODO,melCharSpecial,melCharError,melCommaSemi58 59" catch errors caused by wrong parenthesis60sy region	melParen	transparent start='(' end=')' contains=ALLBUT,@melGroup,melParenError,melInParen61sy match	melParenError	")"62sy match	melInParen	contained "[{}]"63 64" comments65sy region	melComment	start="/\*" end="\*/" contains=melTodo,melSpaceError66sy match	melComment	"//.*" contains=melTodo,melSpaceError67sy match	melCommentError "\*/"68 69sy region	melQuestionColon matchgroup=melConditional transparent start='?' end=':' contains=ALLBUT,@melGroup70 71if !exists("mel_minlines")72  let mel_minlines=1573endif74exec "sy sync ccomment melComment minlines=" . mel_minlines75 76" Define the default highlighting.77" Only when an item doesn't have highlighting yet78 79hi def link melBoolean	Boolean80hi def link melFunction	Function81hi def link melIdentifier	Identifier82hi def link melStatement	Statement83hi def link melConditional Conditional84hi def link melRepeat	Repeat85hi def link melLabel	Label86hi def link melOperator	Operator87hi def link melKeyword	Keyword88hi def link melException	Exception89hi def link melInclude	Include90hi def link melType	Type91hi def link melStorageClass StorageClass92hi def link melDebug	Debug93hi def link melTodo	Todo94hi def link melCharSpecial SpecialChar95hi def link melString	String96hi def link melInteger	Number97hi def link melFloat	Float98hi def link melMatrixVector Float99hi def link melComment	Comment100hi def link melError	Error101hi def link melSpaceError	melError102hi def link melCharError	melError103hi def link melParenError	melError104hi def link melInParen	melError105hi def link melCommentError melError106 107 108let b:current_syntax = "mel"109 
codekingpro/portable-devtools · Team Ai