annotate runtime/syntax/uil.vim @ 2323:1a6c5a3ff687 vim73

Fix bad parsing of 'colorcolumn'. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Fri, 16 Jul 2010 21:29:06 +0200
parents 7bc41231fbc7
children 1b584a6f446c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Motif UIL (User Interface Language)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Thomas Koehler <jean-luc@picard.franken.de>
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
4 " Last Change: 2009 Dec 04
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
5 " URL: http://gott-gehabt.de/800_wer_wir_sind/thomas/Homepage/Computer/vim/syntax/uil.vim
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
6
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " A bunch of useful keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword uilType arguments callbacks color
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn keyword uilType compound_string controls end
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword uilType exported file include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword uilType module object procedure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword uilType user_defined xbitmapfile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword uilTodo contained TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " String and Character contstants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Highlight special characters (those which have a backslash) differently
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match uilSpecial contained "\\\d\d\d\|\\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region uilString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=uilSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match uilCharacter "'[^\\]'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region uilString start=+'+ skip=+\\\\\|\\"+ end=+'+ contains=uilSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match uilSpecialCharacter "'\\.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match uilSpecialStatement "Xm[^ =(){}]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match uilSpecialFunction "MrmNcreateCallback"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match uilRessource "XmN[^ =(){}]*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match uilNumber "-\=\<\d*\.\=\d\+\(e\=f\=\|[uU]\=[lL]\=\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match uilNumber "0[xX][0-9a-fA-F]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn region uilComment start="/\*" end="\*/" contains=uilTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match uilComment "!.*" contains=uilTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match uilCommentError "\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn region uilPreCondit start="^#\s*\(if\>\|ifdef\>\|ifndef\>\|elif\>\|else\>\|endif\>\)" skip="\\$" end="$" contains=uilComment,uilString,uilCharacter,uilNumber,uilCommentError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match uilIncluded contained "<[^>]*>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match uilInclude "^#\s*include\s\+." contains=uilString,uilIncluded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match uilLineSkip "\\$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn region uilDefine start="^#\s*\(define\>\|undef\>\)" end="$" contains=uilLineSkip,uilComment,uilString,uilCharacter,uilNumber,uilCommentError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn sync ccomment uilComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 if version >= 508 || !exists("did_uil_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 let did_uil_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " The default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink uilCharacter uilString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink uilSpecialCharacter uilSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 HiLink uilNumber uilString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink uilCommentError uilError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink uilInclude uilPreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 HiLink uilDefine uilPreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink uilIncluded uilString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 HiLink uilSpecialFunction uilRessource
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink uilRessource Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 HiLink uilSpecialStatement Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink uilError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 HiLink uilPreCondit PreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink uilType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink uilString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 HiLink uilComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink uilSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink uilTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 let b:current_syntax = "uil"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 " vim: ts=8