codekingpro/portable-devtools
115k
1" Vim syntax file2" Language: Motif UIL (User Interface Language)3" Maintainer: Thomas Koehler <jean-luc@picard.franken.de>4" Please be aware: I'm often slow to answer email due to a high5" non-computer related workload (sometimes 4-8 weeks)6" Last Change: 2016 September 67" URL: http://gott-gehabt.de/800_wer_wir_sind/thomas/Homepage/Computer/vim/syntax/uil.vim8 9" quit when a syntax file was already loaded10if exists("b:current_syntax")11 finish12endif13 14" A bunch of useful keywords15syn keyword uilType arguments callbacks color16syn keyword uilType compound_string controls end17syn keyword uilType exported file include18syn keyword uilType module object procedure19syn keyword uilType user_defined xbitmapfile20 21syn keyword uilTodo contained TODO22 23" String and Character constants24" Highlight special characters (those which have a backslash) differently25syn match uilSpecial contained "\\\d\d\d\|\\."26syn region uilString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell,uilSpecial27syn match uilCharacter "'[^\\]'"28syn region uilString start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@Spell,uilSpecial29syn match uilSpecialCharacter "'\\.'"30syn match uilSpecialStatement "Xm[^ =(){}:;]*"31syn match uilSpecialFunction "MrmNcreateCallback"32syn match uilRessource "XmN[^ =(){}:;]*"33 34syn match uilNumber "-\=\<\d*\.\=\d\+\(e\=f\=\|[uU]\=[lL]\=\)\>"35syn match uilNumber "0[xX]\x\+\>"36 37syn region uilComment start="/\*" end="\*/" contains=@Spell,uilTodo38syn match uilComment "!.*" contains=@Spell,uilTodo39syn match uilCommentError "\*/"40 41syn region uilPreCondit start="^#\s*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=uilComment,uilString,uilCharacter,uilNumber,uilCommentError42syn match uilIncluded contained "<[^>]*>"43syn match uilInclude "^#\s*include\s\+." contains=uilString,uilIncluded44syn match uilLineSkip "\\$"45syn region uilDefine start="^#\s*\(define\>\|undef\>\)" end="$" contains=uilLineSkip,uilComment,uilString,uilCharacter,uilNumber,uilCommentError46 47syn sync ccomment uilComment48 49" Define the default highlighting.50" Only when an item doesn't have highlighting yet51 52" The default highlighting.53hi def link uilCharacter uilString54hi def link uilSpecialCharacter uilSpecial55hi def link uilNumber uilString56hi def link uilCommentError uilError57hi def link uilInclude uilPreCondit58hi def link uilDefine uilPreCondit59hi def link uilIncluded uilString60hi def link uilSpecialFunction uilRessource61hi def link uilRessource Identifier62hi def link uilSpecialStatement Keyword63hi def link uilError Error64hi def link uilPreCondit PreCondit65hi def link uilType Type66hi def link uilString String67hi def link uilComment Comment68hi def link uilSpecial Special69hi def link uilTodo Todo70 71 72 73let b:current_syntax = "uil"74 75" vim: ts=876 