comparison runtime/syntax/forth.vim @ 39:c16898406ff2

synchorinize version 7.3.081
author one@zeus.cr.ie.u-ryukyu.ac.jp
date Fri, 17 Dec 2010 17:43:06 +0900
parents e170173ecb68
children 67300faee616
comparison
equal deleted inserted replaced
38:e06a1cd7230d 39:c16898406ff2
1 " Vim syntax file 1 " Vim syntax file
2 " Language: FORTH 2 " Language: FORTH
3 " Maintainer: Christian V. J. Brüssow <cvjb@cvjb.de> 3 " Maintainer: Christian V. J. Brüssow <cvjb@cvjb.de>
4 " Last Change: Sa 09 Feb 2008 13:27:29 CET 4 " Last Change: Di 07 Jul 2009 21:38:45 CEST
5 " Filenames: *.fs,*.ft 5 " Filenames: *.fs,*.ft
6 " URL: http://www.cvjb.de/comp/vim/forth.vim 6 " URL: http://www.cvjb.de/comp/vim/forth.vim
7 7
8 " $Id: forth.vim,v 1.2 2008/08/29 06:41:30 axmo Exp $ 8 " $Id: forth.vim,v 1.12 2008/07/07 21:39:12 bruessow Exp $
9 9
10 " The list of keywords is incomplete, compared with the offical ANS 10 " The list of keywords is incomplete, compared with the offical ANS
11 " wordlist. If you use this language, please improve it, and send me 11 " wordlist. If you use this language, please improve it, and send me
12 " the patches. 12 " the patches.
13 " 13 "
14 " Before sending me patches, please download the newest version of this file 14 " Before sending me patches, please download the newest version of this file
15 " from http://www.cvjb.de/comp/vim/forth.vim or http://www.vim.org/ (search 15 " from http://www.cvjb.de/comp/vim/forth.vim or http://www.vim.org/ (search
16 " for forth.vim). 16 " for forth.vim).
17 17
18 " Many Thanks to... 18 " Many Thanks to...
19 "
20 " 2009-06-28:
21 " Josh Grams send a patch to allow the parenthesis comments at the
22 " beginning of a line. That patch also fixed a typo in one of the
23 " comments.
19 " 24 "
20 " 2008-02-09: 25 " 2008-02-09:
21 " Shawn K. Quinn <sjquinn at speakeasy dot net> send a big patch with 26 " Shawn K. Quinn <sjquinn at speakeasy dot net> send a big patch with
22 " new words commonly used in Forth programs or defined by GNU Forth. 27 " new words commonly used in Forth programs or defined by GNU Forth.
23 " 28 "
207 " char-number conversion 212 " char-number conversion
208 syn keyword forthConversion <<# <# # #> #>> #S (NUMBER) (NUMBER?) CONVERT D>F 213 syn keyword forthConversion <<# <# # #> #>> #S (NUMBER) (NUMBER?) CONVERT D>F
209 syn keyword forthConversion D>S DIGIT DPL F>D HLD HOLD NUMBER S>D SIGN >NUMBER 214 syn keyword forthConversion D>S DIGIT DPL F>D HLD HOLD NUMBER S>D SIGN >NUMBER
210 syn keyword forthConversion F>S S>F 215 syn keyword forthConversion F>S S>F
211 216
212 " interptreter, wordbook, compiler 217 " interpreter, wordbook, compiler
213 syn keyword forthForth (LOCAL) BYE COLD ABORT >BODY >NEXT >LINK CFA >VIEW HERE 218 syn keyword forthForth (LOCAL) BYE COLD ABORT >BODY >NEXT >LINK CFA >VIEW HERE
214 syn keyword forthForth PAD WORDS VIEW VIEW> N>LINK NAME> LINK> L>NAME FORGET 219 syn keyword forthForth PAD WORDS VIEW VIEW> N>LINK NAME> LINK> L>NAME FORGET
215 syn keyword forthForth BODY> ASSERT( ASSERT0( ASSERT1( ASSERT2( ASSERT3( ) 220 syn keyword forthForth BODY> ASSERT( ASSERT0( ASSERT1( ASSERT2( ASSERT3( )
216 syn region forthForth start=+ABORT"\s+ skip=+\\"+ end=+"+ 221 syn region forthForth start=+ABORT"\s+ skip=+\\"+ end=+"+
217 222
256 261
257 " Comments 262 " Comments
258 syn match forthComment '\\\s.*$' contains=forthTodo,forthSpaceError 263 syn match forthComment '\\\s.*$' contains=forthTodo,forthSpaceError
259 syn region forthComment start='\\S\s' end='.*' contains=forthTodo,forthSpaceError 264 syn region forthComment start='\\S\s' end='.*' contains=forthTodo,forthSpaceError
260 syn match forthComment '\.(\s[^)]*)' contains=forthTodo,forthSpaceError 265 syn match forthComment '\.(\s[^)]*)' contains=forthTodo,forthSpaceError
261 syn region forthComment start='\s(\s' skip='\\)' end=')' contains=forthTodo,forthSpaceError 266 syn region forthComment start='\(^\|\s\)\zs(\s' skip='\\)' end=')' contains=forthTodo,forthSpaceError
262 syn region forthComment start='/\*' end='\*/' contains=forthTodo,forthSpaceError 267 syn region forthComment start='/\*' end='\*/' contains=forthTodo,forthSpaceError
263 268
264 " Include files 269 " Include files
265 syn match forthInclude '^INCLUDE\s\+\k\+' 270 syn match forthInclude '^INCLUDE\s\+\k\+'
266 syn match forthInclude '^require\s\+\k\+' 271 syn match forthInclude '^require\s\+\k\+'