Code: Select all
" Vim syntax file
" Language: XYplorer Script
" Maintainer: tux. <der underscore tuxman at arcor dot de>
" Filenames: *.xys
" Last change: July 19 2010
if exists("b:current_syntax") | finish | endif
syn match XYbraces "[({\[\]})]"
syn match XYlncomment "\/\/.*"
syn match XYvariable "\$[A-Za-z0-9-_\.]+"
syn match XYpredefvar "%[A-Za-z]%+"
syn match XYoperator "and|or|xor|&&|\|\||like|likei|>|<|>=|<=|!=|=="
syn match XYidentifier "<[A-Za-z0-9]>"
syn region XYstring start=+"+ skip=+\\"+ end=+"+
syn region XYcomment start="/\*" end="\*/" contains=@Spell
syn keyword XYcommands asc assert backupto beep box br break button chr comment compare confirm continue copy copyas copyitem copytext copyto datediff delete download echo end eval exists filetype filter focus formatdate getinfo getkey gettoken global goto hexdump highlight html incr input inputfile inputfolder isunicode load loadsearch loadtree md5 moveto msg new open openwith property quote rand readfile readurl regexreplace rename replace report resolvepath rotate run savesettings selfilter sel self seltab set setkey setting settingp sortby sound status step strlen strpos strrepeat sub substr swapnames tag text timestamp toolbar unset unstep urldecode urlencode utf8decode utf8encode writefile
syn keyword XYconditional if elseif else
syn keyword XYrepeat while
syn match XYboolean "true|false"
command -nargs=+ HiLink hi def link <args>
HiLink XYcomment Comment
HiLink XYlncomment Comment
HiLink XYcommands Function
HiLink XYbraces Function
HiLink XYvariable Identifier
HiLink XYidentifier Identifier
HiLink XYpredefvar Identifier
HiLink XYconditional Conditional
HiLink XYrepeat Repeat
HiLink XYboolean Boolean
HiLink XYoperator Operator
HiLink XYstring String
delcommand HiLink
let b:current_syntax = "xyscript"
" vim:wrap(Any help is appreciated.)
Put it into your /syntax folder and use :set ft=xys for your scripts to use it...
XYplorer Beta Club