annotate runtime/syntax/tcl.vim @ 9013:22c29a515b53 v7.4.1792

commit https://github.com/vim/vim/commit/ab3022196ea4f1496e79b8ee85996e31c45d02f1 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 26 20:59:29 2016 +0200 patch 7.4.1792 Problem: Color name decoding is implemented several times. Solution: Move it to term.c. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Tue, 26 Apr 2016 21:00:07 +0200
parents 80e5f9584b02
children 43efa4f5a8ea
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
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
2 " Language: Tcl/Tk
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
3 " Maintainer: Taylor Venable <taylor@metasyntax.net>
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
4 " (previously Brett Cannon <brett@python.org>)
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 7
diff changeset
5 " (previously Dean Copsey <copsey@cs.ucdavis.edu>)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " (previously Matt Neumann <mattneu@purpleturtle.com>)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " (previously Allan Kelly <allan@fruitloaf.co.uk>)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Original: Robin Becker <robin@jessikat.demon.co.uk>
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
9 " Last Change: 2014-02-12
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
10 " Version: 1.14
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
11 " URL: http://bitbucket.org/taylor_venable/metasyntax/src/tip/Config/vim/syntax/tcl.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
21 " Basic Tcl commands: http://www.tcl.tk/man/tcl8.6/TclCmd/contents.htm
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
22 syn keyword tclCommand after append array bgerror binary cd chan clock close concat
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
23 syn keyword tclCommand dde dict encoding eof error eval exec exit expr fblocked
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
24 syn keyword tclCommand fconfigure fcopy file fileevent flush format gets glob
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
25 syn keyword tclCommand global history http incr info interp join lappend lassign
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
26 syn keyword tclCommand lindex linsert list llength lmap load lrange lrepeat
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
27 syn keyword tclCommand lreplace lreverse lsearch lset lsort memory my namespace
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
28 syn keyword tclCommand next nextto open package pid puts pwd read refchan regexp
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
29 syn keyword tclCommand registry regsub rename scan seek self set socket source
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
30 syn keyword tclCommand split string subst tell time trace unknown unload unset
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
31 syn keyword tclCommand update uplevel upvar variable vwait
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
32
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
33 " The 'Tcl Standard Library' commands: http://www.tcl.tk/man/tcl8.6/TclCmd/library.htm
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
34 syn keyword tclCommand auto_execok auto_import auto_load auto_mkindex auto_reset
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
35 syn keyword tclCommand auto_qualify tcl_findLibrary parray tcl_endOfWord
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
36 syn keyword tclCommand tcl_startOfNextWord tcl_startOfPreviousWord
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
37 syn keyword tclCommand tcl_wordBreakAfter tcl_wordBreakBefore
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
38
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
39 " Global variables used by Tcl: http://www.tcl.tk/man/tcl8.6/TclCmd/tclvars.htm
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
40 syn keyword tclVars auto_path env errorCode errorInfo tcl_library tcl_patchLevel
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
41 syn keyword tclVars tcl_pkgPath tcl_platform tcl_precision tcl_rcFileName
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
42 syn keyword tclVars tcl_traceCompile tcl_traceExec tcl_wordchars
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
43 syn keyword tclVars tcl_nonwordchars tcl_version argc argv argv0 tcl_interactive
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
44
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
45 " Strings which expr accepts as boolean values, aside from zero / non-zero.
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
46 syn keyword tclBoolean true false on off yes no
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
47
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
48 syn keyword tclProcCommand apply coroutine proc return tailcall yield yieldto
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword tclConditional if then else elseif switch
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
50 syn keyword tclConditional catch try throw finally
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
51 syn keyword tclLabel default
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword tclRepeat while for foreach break continue
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
53
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword tcltkSwitch contained insert create polygon fill outline tag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " WIDGETS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " commands associated with widgets
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword tcltkWidgetSwitch contained background highlightbackground insertontime cget
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword tcltkWidgetSwitch contained selectborderwidth borderwidth highlightcolor insertwidth
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword tcltkWidgetSwitch contained selectforeground cursor highlightthickness padx setgrid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword tcltkWidgetSwitch contained exportselection insertbackground pady takefocus
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword tcltkWidgetSwitch contained font insertborderwidth relief xscrollcommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword tcltkWidgetSwitch contained foreground insertofftime selectbackground yscrollcommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword tcltkWidgetSwitch contained height spacing1 spacing2 spacing3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword tcltkWidgetSwitch contained state tabs width wrap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " button
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword tcltkWidgetSwitch contained command default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 " canvas
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword tcltkWidgetSwitch contained closeenough confine scrollregion xscrollincrement yscrollincrement orient
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 " checkbutton, radiobutton
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword tcltkWidgetSwitch contained indicatoron offvalue onvalue selectcolor selectimage state variable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 " entry, frame
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword tcltkWidgetSwitch contained show class colormap container visual
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " listbox, menu
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword tcltkWidgetSwitch contained selectmode postcommand selectcolor tearoff tearoffcommand title type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " menubutton, message
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword tcltkWidgetSwitch contained direction aspect justify
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " scale
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword tcltkWidgetSwitch contained bigincrement digits from length resolution showvalue sliderlength sliderrelief tickinterval to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 " scrollbar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword tcltkWidgetSwitch contained activerelief elementborderwidth
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 " image
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword tcltkWidgetSwitch contained delete names types create
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 " variable reference
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 " ::optional::namespaces
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
86 syn match tclVarRef "$\(\(::\)\?\([[:alnum:]_]*::\)*\)\a[[:alnum:]_]*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 " ${...} may contain any character except '}'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn match tclVarRef "${[^}]*}"
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
89
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
90 " Used to facilitate hack to utilize string background for certain color
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
91 " schemes, e.g. inkpot and lettuce.
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
92 syn cluster tclVarRefC add=tclVarRef
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
93 syn cluster tclSpecialC add=tclSpecial
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
94
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
95 " The syntactic unquote-splicing replacement for [expand].
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
96 syn match tclExpand '\s{\*}'
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
97 syn match tclExpand '^{\*}'
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
98
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 " menu, mane add
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword tcltkWidgetSwitch contained active end last none cascade checkbutton command radiobutton separator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword tcltkWidgetSwitch contained activebackground actveforeground accelerator background bitmap columnbreak
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword tcltkWidgetSwitch contained font foreground hidemargin image indicatoron label menu offvalue onvalue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword tcltkWidgetSwitch contained selectcolor selectimage state underline value variable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn keyword tcltkWidgetSwitch contained add clone configure delete entrycget entryconfigure index insert invoke
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword tcltkWidgetSwitch contained post postcascade type unpost yposition activate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 "syn keyword tcltkWidgetSwitch contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 "syn match tcltkWidgetSwitch contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<button\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<scale\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<canvas\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<checkbutton\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<entry\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<frame\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<image\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<listbox\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<menubutton\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<message\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<radiobutton\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\<scrollbar\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 " These words are dual purpose.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 " match switches
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 "syn match tcltkWidgetSwitch contained "-text"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn match tcltkWidgetSwitch contained "-text\(var\)\?"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn match tcltkWidgetSwitch contained "-menu"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn match tcltkWidgetSwitch contained "-label"hs=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 " match commands - 2 lines for pretty match.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 "variable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 " Special case - If a number follows a variable region, it must be at the end of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 " the pattern, by definition. Therefore, (1) either include a number as the region
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 " end and exclude tclNumber from the contains list, or (2) make variable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 " keepend. As (1) would put variable out of step with everything else, use (2).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn region tcltkCommand matchgroup=tcltkCommandColor start="^\<variable\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tclString,tclNumber,tclVarRef,tcltkCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn region tcltkCommand matchgroup=tcltkCommandColor start="\s\<variable\>\|\[\<variable\>"hs=s+1 matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tclString,tclNumber,tclVarRef,tcltkCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 " menu
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn region tcltkWidget matchgroup=tcltkWidgetColor start="^\<menu\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\s\<menu\>\|\[\<menu\>"hs=s+1 matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 " label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn region tcltkWidget matchgroup=tcltkWidgetColor start="^\<label\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\s\<label\>\|\[\<label\>"hs=s+1 matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 " text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn region tcltkWidget matchgroup=tcltkWidgetColor start="^\<text\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidget,tcltkWidgetSwitch,tcltkSwitch,tclNumber,tclVarRef,tclString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn region tcltkWidget matchgroup=tcltkWidgetColor start="\s\<text\>\|\[\<text\>"hs=s+1 matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidget,tcltkWidgetSwitch,tclString,tcltkSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 " This isn't contained (I don't think) so it's OK to just associate with the Color group.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 " TODO: This could be wrong.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn keyword tcltkWidgetColor toplevel
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn region tcltkPackConf matchgroup=tcltkPackConfColor start="\<configure\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tcltkPackConfSwitch,tclNumber,tclVarRef keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn region tcltkPackConf matchgroup=tcltkPackConfColor start="\<cget\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"me=e-1 contains=tclLineContinue,tcltkWidgetSwitch,tclString,tcltkSwitch,tcltkPackConfSwitch,tclNumber,tclVarRef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 " NAMESPACE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 " commands associated with namespace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword tcltkNamespaceSwitch contained children code current delete eval
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn keyword tcltkNamespaceSwitch contained export forget import inscope origin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn keyword tcltkNamespaceSwitch contained parent qualifiers tail which command variable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn region tcltkCommand matchgroup=tcltkCommandColor start="\<namespace\>" matchgroup=NONE skip="^\s*$" end="{\|}\|]\|\"\|[^\\]*\s*$"me=e-1 contains=tclLineContinue,tcltkNamespaceSwitch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 " EXPR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 " commands associated with expr
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
163 syn keyword tcltkMaths contained abs acos asin atan atan2 bool ceil cos cosh double entier
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
164 syn keyword tcltkMaths contained exp floor fmod hypot int isqrt log log10 max min pow rand
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
165 syn keyword tcltkMaths contained round sin sinh sqrt srand tan tanh wide
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
166
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn region tcltkCommand matchgroup=tcltkCommandColor start="\<expr\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"me=e-1 contains=tclLineContinue,tcltkMaths,tclNumber,tclVarRef,tclString,tcltlWidgetSwitch,tcltkCommand,tcltkPackConf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 " format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn region tcltkCommand matchgroup=tcltkCommandColor start="\<format\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"me=e-1 contains=tclLineContinue,tcltkMaths,tclNumber,tclVarRef,tclString,tcltlWidgetSwitch,tcltkCommand,tcltkPackConf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 " PACK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 " commands associated with pack
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn keyword tcltkPackSwitch contained forget info propogate slaves
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn keyword tcltkPackConfSwitch contained after anchor before expand fill in ipadx ipady padx pady side
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 syn region tcltkCommand matchgroup=tcltkCommandColor start="\<pack\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkPackSwitch,tcltkPackConf,tcltkPackConfSwitch,tclNumber,tclVarRef,tclString,tcltkCommand keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 " STRING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 " commands associated with string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn keyword tcltkStringSwitch contained compare first index last length match range tolower toupper trim trimleft trimright wordstart wordend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn region tcltkCommand matchgroup=tcltkCommandColor start="\<string\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkStringSwitch,tclNumber,tclVarRef,tclString,tcltkCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 " ARRAY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 " commands associated with array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn keyword tcltkArraySwitch contained anymore donesearch exists get names nextelement size startsearch set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 " match from command name to ] or EOL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 syn region tcltkCommand matchgroup=tcltkCommandColor start="\<array\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkArraySwitch,tclNumber,tclVarRef,tclString,tcltkCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 " LSORT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 " switches for lsort
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 syn keyword tcltkLsortSwitch contained ascii dictionary integer real command increasing decreasing index
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 " match from command name to ] or EOL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn region tcltkCommand matchgroup=tcltkCommandColor start="\<lsort\>" matchgroup=NONE skip="^\s*$" end="]\|[^\\]*\s*$"he=e-1 contains=tclLineContinue,tcltkLsortSwitch,tclNumber,tclVarRef,tclString,tcltkCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn keyword tclTodo contained TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
197 " Sequences which are backslash-escaped: http://www.tcl.tk/man/tcl8.5/TclCmd/Tcl.htm#M16
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
198 " Octal, hexadecimal, unicode codepoints, and the classics.
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
199 " Tcl takes as many valid characters in a row as it can, so \xAZ in a string is newline followed by 'Z'.
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
200 syn match tclSpecial contained '\\\([0-7]\{1,3}\|x\x\{1,2}\|u\x\{1,4}\|[abfnrtv]\)'
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
201 syn match tclSpecial contained '\\[\[\]\{\}\"\$]'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
203 " Command appearing inside another command or inside a string.
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
204 syn region tclEmbeddedStatement start='\[' end='\]' contained contains=tclCommand,tclNumber,tclLineContinue,tclString,tclVarRef,tclEmbeddedStatement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 " A string needs the skip argument as it may legitimately contain \".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 " Match at start of line
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
207 syn region tclString start=+^"+ end=+"+ contains=@tclSpecialC skip=+\\\\\|\\"+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 "Match all other legal strings.
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
209 syn region tclString start=+[^\\]"+ms=s+1 end=+"+ contains=@tclSpecialC,@tclVarRefC,tclEmbeddedStatement skip=+\\\\\|\\"+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
211 " Line continuation is backslash immediately followed by newline.
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
212 syn match tclLineContinue '\\$'
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
213
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
214 if exists('g:tcl_warn_continuation')
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
215 syn match tclNotLineContinue '\\\s\+$'
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
216 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 "integer number, or floating point number without a dot and with "f".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 syn match tclNumber "\<\d\+\(u\=l\=\|lu\|f\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 "floating point number, with dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 syn match tclNumber "\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 "floating point number, starting with a dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 syn match tclNumber "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 "floating point number, without dot, with exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 syn match tclNumber "\<\d\+e[-+]\=\d\+[fl]\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 "hex number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 syn match tclNumber "0x[0-9a-f]\+\(u\=l\=\|lu\)\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 "syn match tclIdentifier "\<[a-z_][a-z0-9_]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 syn region tclComment start="^\s*\#" skip="\\$" end="$" contains=tclTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn region tclComment start=/;\s*\#/hs=s+1 skip="\\$" end="$" contains=tclTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
235 "syn match tclComment /^\s*\#.*$/
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
236 "syn match tclComment /;\s*\#.*$/hs=s+1
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
237
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 "syn sync ccomment tclComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 " 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
243 if version >= 508 || !exists("did_tcl_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 let did_tcl_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 HiLink tcltkSwitch Special
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
252 HiLink tclExpand Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 HiLink tclLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 HiLink tclConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 HiLink tclRepeat Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 HiLink tclNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 HiLink tclError Error
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
258 HiLink tclCommand Statement
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
259 HiLink tclProcCommand Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 HiLink tclString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 HiLink tclComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 HiLink tclSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 HiLink tclTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 " Below here are the commands and their options.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 HiLink tcltkCommandColor Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 HiLink tcltkWidgetColor Structure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 HiLink tclLineContinue WarningMsg
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
268 if exists('g:tcl_warn_continuation')
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
269 HiLink tclNotLineContinue ErrorMsg
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1125
diff changeset
270 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 HiLink tcltkStringSwitch Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 HiLink tcltkArraySwitch Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 HiLink tcltkLsortSwitch Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 HiLink tcltkPackSwitch Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 HiLink tcltkPackConfSwitch Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 HiLink tcltkMaths Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 HiLink tcltkNamespaceSwitch Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 HiLink tcltkWidgetSwitch Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 HiLink tcltkPackConfColor Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 HiLink tclVarRef Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 let b:current_syntax = "tcl"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286
5692
80e5f9584b02 Update runtime files. Add Euphoria syntax files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
287 " vim: ts=8 noet nolist