annotate runtime/syntax/forth.vim @ 10721:9177c4f6a229

Added tag v8.0.0250 for changeset 44a1661f4cfaa091f12206458ff6ab8e9c122803
author Christian Brabandt <cb@256bit.org>
date Sat, 28 Jan 2017 14:00:05 +0100
parents 46763b01cd9a
children c9bacbda2d5b
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: FORTH
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Christian V. J. Brüssow <cvjb@cvjb.de>
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
4 " Last Change: So 27 Mai 2012 15:56:28 CEST
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Filenames: *.fs,*.ft
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
6 " URL: http://www.cvjb.de/comp/vim/forth.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
8 " $Id: forth.vim,v 1.14 2012/05/27 15:57:22 bruessow Exp $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
10 " The list of keywords is incomplete, compared with the official ANS
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " wordlist. If you use this language, please improve it, and send me
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " the patches.
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
13 "
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
14 " Before sending me patches, please download the newest version of this file
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
15 " from http://www.cvjb.de/comp/vim/forth.vim or http://www.vim.org/ (search
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
16 " for forth.vim).
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Many Thanks to...
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
19 "
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
20 " 2012-05-13:
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
21 " Dominique Pellé <dominique dot pelle at gmail dot com> for sending the
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
22 " patch to allow spellchecking of strings, comments, ...
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
23 "
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
24 " 2012-01-07:
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
25 " Thilo Six <T.Six at gmx dot de> send a patch for cpoptions.
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
26 " See the discussion at http://thread.gmane.org/gmane.editors.vim.devel/32151
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 "
2229
d45902a5c61c Fix a few more things for persistent undo.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
28 " 2009-06-28:
d45902a5c61c Fix a few more things for persistent undo.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
29 " Josh Grams send a patch to allow the parenthesis comments at the
d45902a5c61c Fix a few more things for persistent undo.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
30 " beginning of a line. That patch also fixed a typo in one of the
d45902a5c61c Fix a few more things for persistent undo.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
31 " comments.
d45902a5c61c Fix a few more things for persistent undo.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
32 "
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
33 " 2008-02-09:
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
34 " Shawn K. Quinn <sjquinn at speakeasy dot net> send a big patch with
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
35 " new words commonly used in Forth programs or defined by GNU Forth.
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
36 "
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
37 " 2007-07-11:
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
38 " Benjamin Krill <ben at codiert dot org> send me a patch
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
39 " to highlight space errors.
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
40 " You can toggle this feature on through setting the
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
41 " flag forth_space_errors in you vimrc. If you have switched it on,
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
42 " you can turn off highlighting of trailing spaces in comments by
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
43 " setting forth_no_trail_space_error in your vimrc. If you do not want
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
44 " the highlighting of a tabulator following a space in comments, you
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
45 " can turn this off by setting forth_no_tab_space_error.
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
46 "
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
47 " 2006-05-25:
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
48 " Bill McCarthy <WJMc@...> and Ilya Sher <ilya-vim@...>
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
49 " Who found a bug in the ccomment line in 2004!!!
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
50 " I'm really very sorry, that it has taken two years to fix that
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
51 " in the official version of this file. Shame on me.
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
52 " I think my face will be red the next ten years...
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
53 "
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
54 " 2006-05-21:
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
55 " Thomas E. Vaughan <tevaugha at ball dot com> send me a patch
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
56 " for the parenthesis comment word, so words with a trailing
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
57 " parenthesis will not start the highlighting for such comments.
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
58 "
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " 2003-05-10:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " Andrew Gaul <andrew at gaul.org> send me a patch for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " forthOperators.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 " 2003-04-03:
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
64 " Ron Aaron <ron at ronware dot org> made updates for an
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " improved Win32Forth support.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " 2002-04-22:
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
68 " Charles Shattuck <charley at forth dot org> helped me to settle up with the
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 " binary and hex number highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 " 2002-04-20:
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
72 " Charles Shattuck <charley at forth dot org> send me some code for correctly
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " highlighting char and [char] followed by an opening paren. He also added
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " some words for operators, conditionals, and definitions; and added the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " highlighting for s" and c".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " 2000-03-28:
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
78 " John Providenza <john at probo dot com> made improvements for the
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 " highlighting of strings, and added the code for highlighting hex numbers.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3557
diff changeset
83 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3557
diff changeset
84 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
88 let s:cpo_save = &cpo
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
89 set cpo&vim
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
90
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 " Synchronization method
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
92 syn sync ccomment
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
93 syn sync maxlines=200
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 " I use gforth, so I set this to case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 " Some special, non-FORTH keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword forthTodo contained TODO FIXME XXX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn match forthTodo contained 'Copyright\(\s([Cc])\)\=\(\s[0-9]\{2,4}\)\='
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 " Characters allowed in keywords
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
103 " I don't know if 128-255 are allowed in ANS-FORTH
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3557
diff changeset
104 setlocal iskeyword=!,@,33-35,%,$,38-64,A-Z,91-96,a-z,123-126,128-255
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
106 " when wanted, highlight trailing white space
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
107 if exists("forth_space_errors")
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
108 if !exists("forth_no_trail_space_error")
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
109 syn match forthSpaceError display excludenl "\s\+$"
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
110 endif
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
111 if !exists("forth_no_tab_space_error")
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
112 syn match forthSpaceError display " \+\t"me=e-1
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
113 endif
73fe8baea242 updated for version 7.2a
vimboss
parents: 15
diff changeset
114 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 " Keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 " basic mathematical and logical operators
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword forthOperators + - * / MOD /MOD NEGATE ABS MIN MAX
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
120 syn keyword forthOperators AND OR XOR NOT LSHIFT RSHIFT INVERT 2* 2/ 1+
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
121 syn keyword forthOperators 1- 2+ 2- 8* UNDER+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword forthOperators M+ */ */MOD M* UM* M*/ UM/MOD FM/MOD SM/REM
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
123 syn keyword forthOperators D+ D- DNEGATE DABS DMIN DMAX D2* D2/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn keyword forthOperators F+ F- F* F/ FNEGATE FABS FMAX FMIN FLOOR FROUND
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn keyword forthOperators F** FSQRT FEXP FEXPM1 FLN FLNP1 FLOG FALOG FSIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn keyword forthOperators FCOS FSINCOS FTAN FASIN FACOS FATAN FATAN2 FSINH
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
127 syn keyword forthOperators FCOSH FTANH FASINH FACOSH FATANH F2* F2/ 1/F
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
128 syn keyword forthOperators F~REL F~ABS F~
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
129 syn keyword forthOperators 0< 0<= 0<> 0= 0> 0>= < <= <> = > >= U< U<=
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
130 syn keyword forthOperators U> U>= D0< D0<= D0<> D0= D0> D0>= D< D<= D<>
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
131 syn keyword forthOperators D= D> D>= DU< DU<= DU> DU>= WITHIN ?NEGATE
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
132 syn keyword forthOperators ?DNEGATE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 " stack manipulations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn keyword forthStack DROP NIP DUP OVER TUCK SWAP ROT -ROT ?DUP PICK ROLL
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
136 syn keyword forthStack 2DROP 2NIP 2DUP 2OVER 2TUCK 2SWAP 2ROT 2-ROT
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
137 syn keyword forthStack 3DUP 4DUP 5DUP 3DROP 4DROP 5DROP 8DROP 4SWAP 4ROT
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
138 syn keyword forthStack 4-ROT 4TUCK 8SWAP 8DUP
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn keyword forthRStack >R R> R@ RDROP 2>R 2R> 2R@ 2RDROP
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
140 syn keyword forthRstack 4>R 4R> 4R@ 4RDROP
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn keyword forthFStack FDROP FNIP FDUP FOVER FTUCK FSWAP FROT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 " stack pointer manipulations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn keyword forthSP SP@ SP! FP@ FP! RP@ RP! LP@ LP!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 " address operations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn keyword forthMemory @ ! +! C@ C! 2@ 2! F@ F! SF@ SF! DF@ DF!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn keyword forthAdrArith CHARS CHAR+ CELLS CELL+ CELL ALIGN ALIGNED FLOATS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn keyword forthAdrArith FLOAT+ FLOAT FALIGN FALIGNED SFLOATS SFLOAT+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn keyword forthAdrArith SFALIGN SFALIGNED DFLOATS DFLOAT+ DFALIGN DFALIGNED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn keyword forthAdrArith MAXALIGN MAXALIGNED CFALIGN CFALIGNED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn keyword forthAdrArith ADDRESS-UNIT-BITS ALLOT ALLOCATE HERE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn keyword forthMemBlks MOVE ERASE CMOVE CMOVE> FILL BLANK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 " conditionals
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword forthCond IF ELSE ENDIF THEN CASE OF ENDOF ENDCASE ?DUP-IF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn keyword forthCond ?DUP-0=-IF AHEAD CS-PICK CS-ROLL CATCH THROW WITHIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 " iterations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn keyword forthLoop BEGIN WHILE REPEAT UNTIL AGAIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn keyword forthLoop ?DO LOOP I J K +DO U+DO -DO U-DO DO +LOOP -LOOP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn keyword forthLoop UNLOOP LEAVE ?LEAVE EXIT DONE FOR NEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 " new words
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
165 syn match forthClassDef '\<:class\s*[^ \t]\+\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
166 syn match forthObjectDef '\<:object\s*[^ \t]\+\>'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn match forthColonDef '\<:m\?\s*[^ \t]\+\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 syn keyword forthEndOfColonDef ; ;M ;m
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
169 syn keyword forthEndOfClassDef ;class
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
170 syn keyword forthEndOfObjectDef ;object
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
171 syn keyword forthDefine CONSTANT 2CONSTANT FCONSTANT VARIABLE 2VARIABLE
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
172 syn keyword forthDefine FVARIABLE CREATE USER VALUE TO DEFER IS DOES> IMMEDIATE
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
173 syn keyword forthDefine COMPILE-ONLY COMPILE RESTRICT INTERPRET POSTPONE EXECUTE
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
174 syn keyword forthDefine LITERAL CREATE-INTERPRET/COMPILE INTERPRETATION>
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
175 syn keyword forthDefine <INTERPRETATION COMPILATION> <COMPILATION ] LASTXT
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
176 syn keyword forthDefine COMP' POSTPONE, FIND-NAME NAME>INT NAME?INT NAME>COMP
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
177 syn keyword forthDefine NAME>STRING STATE C; CVARIABLE
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
178 syn keyword forthDefine , 2, F, C,
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
179 syn match forthDefine "\[IFDEF]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
180 syn match forthDefine "\[IFUNDEF]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
181 syn match forthDefine "\[THEN]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
182 syn match forthDefine "\[ENDIF]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
183 syn match forthDefine "\[ELSE]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
184 syn match forthDefine "\[?DO]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
185 syn match forthDefine "\[DO]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
186 syn match forthDefine "\[LOOP]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
187 syn match forthDefine "\[+LOOP]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
188 syn match forthDefine "\[NEXT]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
189 syn match forthDefine "\[BEGIN]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
190 syn match forthDefine "\[UNTIL]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
191 syn match forthDefine "\[AGAIN]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
192 syn match forthDefine "\[WHILE]"
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
193 syn match forthDefine "\[REPEAT]"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 syn match forthDefine "\[COMP']"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn match forthDefine "'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn match forthDefine '\<\[\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn match forthDefine "\[']"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 syn match forthDefine '\[COMPILE]'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 " debugging
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 syn keyword forthDebug PRINTDEBUGDATA PRINTDEBUGLINE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 syn match forthDebug "\<\~\~\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 " Assembler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 syn keyword forthAssembler ASSEMBLER CODE END-CODE ;CODE FLUSH-ICACHE C,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 " basic character operations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 syn keyword forthCharOps (.) CHAR EXPECT FIND WORD TYPE -TRAILING EMIT KEY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 syn keyword forthCharOps KEY? TIB CR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 " recognize 'char (' or '[char] (' correctly, so it doesn't
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 " highlight everything after the paren as a comment till a closing ')'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 syn match forthCharOps '\<char\s\S\s'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 syn match forthCharOps '\<\[char\]\s\S\s'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 syn region forthCharOps start=+."\s+ skip=+\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 " char-number conversion
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
217 syn keyword forthConversion <<# <# # #> #>> #S (NUMBER) (NUMBER?) CONVERT D>F
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
218 syn keyword forthConversion D>S DIGIT DPL F>D HLD HOLD NUMBER S>D SIGN >NUMBER
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
219 syn keyword forthConversion F>S S>F
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220
2229
d45902a5c61c Fix a few more things for persistent undo.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
221 " interpreter, wordbook, compiler
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 syn keyword forthForth (LOCAL) BYE COLD ABORT >BODY >NEXT >LINK CFA >VIEW HERE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 syn keyword forthForth PAD WORDS VIEW VIEW> N>LINK NAME> LINK> L>NAME FORGET
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
224 syn keyword forthForth BODY> ASSERT( ASSERT0( ASSERT1( ASSERT2( ASSERT3( )
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 syn region forthForth start=+ABORT"\s+ skip=+\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 " vocabularies
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 syn keyword forthVocs ONLY FORTH ALSO ROOT SEAL VOCS ORDER CONTEXT #VOCS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 syn keyword forthVocs VOCABULARY DEFINITIONS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
231 " File keywords
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
232 syn keyword forthFileMode R/O R/W W/O BIN
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
233 syn keyword forthFileWords OPEN-FILE CREATE-FILE CLOSE-FILE DELETE-FILE
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
234 syn keyword forthFileWords RENAME-FILE READ-FILE READ-LINE KEY-FILE
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
235 syn keyword forthFileWords KEY?-FILE WRITE-FILE WRITE-LINE EMIT-FILE
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
236 syn keyword forthFileWords FLUSH-FILE FILE-STATUS FILE-POSITION
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
237 syn keyword forthFileWords REPOSITION-FILE FILE-SIZE RESIZE-FILE
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
238 syn keyword forthFileWords SLURP-FILE SLURP-FID STDIN STDOUT STDERR
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
239 syn keyword forthBlocks OPEN-BLOCKS USE LOAD --> BLOCK-OFFSET
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
240 syn keyword forthBlocks GET-BLOCK-FID BLOCK-POSITION LIST SCR BLOCK
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
241 syn keyword forthBlocks BUFER EMPTY-BUFFERS EMPTY-BUFFER UPDATE UPDATED?
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
242 syn keyword forthBlocks SAVE-BUFFERS SAVE-BUFFER FLUSH THRU +LOAD +THRU
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
243 syn keyword forthBlocks BLOCK-INCLUDED
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
244
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 " numbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 syn keyword forthMath DECIMAL HEX BASE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 syn match forthInteger '\<-\=[0-9.]*[0-9.]\+\>'
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
248 syn match forthInteger '\<&-\=[0-9.]*[0-9.]\+\>'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 " recognize hex and binary numbers, the '$' and '%' notation is for gforth
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 syn match forthInteger '\<\$\x*\x\+\>' " *1* --- dont't mess
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 syn match forthInteger '\<\x*\d\x*\>' " *2* --- this order!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 syn match forthInteger '\<%[0-1]*[0-1]\+\>'
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
253 syn match forthFloat '\<-\=\d*[.]\=\d\+[DdEe]\d\+\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
254 syn match forthFloat '\<-\=\d*[.]\=\d\+[DdEe][-+]\d\+\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
255
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
256 " XXX If you find this overkill you can remove it. This has to come after the
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
257 " highlighting for numbers otherwise it has no effect.
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
258 syn region forthComment start='0 \[if\]' end='\[endif\]' end='\[then\]' contains=forthTodo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 " Strings
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
261 syn region forthString start=+\.*\"+ end=+"+ end=+$+ contains=@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 " XXX
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
263 syn region forthString start=+s\"+ end=+"+ end=+$+ contains=@Spell
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
264 syn region forthString start=+c\"+ end=+"+ end=+$+ contains=@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 " Comments
3557
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
267 syn match forthComment '\\\s.*$' contains=@Spell,forthTodo,forthSpaceError
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
268 syn region forthComment start='\\S\s' end='.*' contains=@Spell,forthTodo,forthSpaceError
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
269 syn match forthComment '\.(\s[^)]*)' contains=@Spell,forthTodo,forthSpaceError
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
270 syn region forthComment start='\(^\|\s\)\zs(\s' skip='\\)' end=')' contains=@Spell,forthTodo,forthSpaceError
9cb3a75a20b9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
271 syn region forthComment start='/\*' end='\*/' contains=@Spell,forthTodo,forthSpaceError
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 " Include files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 syn match forthInclude '^INCLUDE\s\+\k\+'
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
275 syn match forthInclude '^require\s\+\k\+'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 syn match forthInclude '^fload\s\+'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 syn match forthInclude '^needs\s\+'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
279 " Locals definitions
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
280 syn region forthLocals start='{\s' start='{$' end='\s}' end='^}'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
281 syn match forthLocals '{ }' " otherwise, at least two spaces between
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
282 syn region forthDeprecated start='locals|' end='|'
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1620
diff changeset
283
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3557
diff changeset
285 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3557
diff changeset
287 " The default methods for highlighting. Can be overridden later.
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
288 hi def link forthTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
289 hi def link forthOperators Operator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
290 hi def link forthMath Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
291 hi def link forthInteger Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
292 hi def link forthFloat Float
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
293 hi def link forthStack Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
294 hi def link forthRstack Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
295 hi def link forthFStack Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
296 hi def link forthSP Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
297 hi def link forthMemory Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
298 hi def link forthAdrArith Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
299 hi def link forthMemBlks Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
300 hi def link forthCond Conditional
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
301 hi def link forthLoop Repeat
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
302 hi def link forthColonDef Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
303 hi def link forthEndOfColonDef Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
304 hi def link forthDefine Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
305 hi def link forthDebug Debug
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
306 hi def link forthAssembler Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
307 hi def link forthCharOps Character
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
308 hi def link forthConversion String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
309 hi def link forthForth Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
310 hi def link forthVocs Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
311 hi def link forthString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
312 hi def link forthComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
313 hi def link forthClassDef Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
314 hi def link forthEndOfClassDef Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
315 hi def link forthObjectDef Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
316 hi def link forthEndOfObjectDef Define
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
317 hi def link forthInclude Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
318 hi def link forthLocals Type " nothing else uses type and locals must stand out
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
319 hi def link forthDeprecated Error " if you must, change to Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
320 hi def link forthFileMode Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
321 hi def link forthFileWords Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
322 hi def link forthBlocks Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
323 hi def link forthSpaceError Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 let b:current_syntax = "forth"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
328 let &cpo = s:cpo_save
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2229
diff changeset
329 unlet s:cpo_save
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 " vim:ts=8:sw=4:nocindent:smartindent: