sponsor Vim development Vim logo Vim Book Ad

forth.vim : Syntax highlighting for the Forth programming language

 script karma  Rating 24/14, Downloaded by 2060  Comments, bugs, improvements  Vim wiki

created by
Christian Brüssow
 
script type
syntax
 
description
I no longer maintain this file. So please use the newest one included in Vim.


This version is an update of the version shipped with Vim 6.X and 7.X. I have only tested it with Vim 7.X.

New version allows highlighting of "space errors" in comments (e.g. trailing spaces and/or tabs). Thanks to Benjamin Krill for this nice feature. To turn it on, add the following line to your vimrc:

let forth_space_errors=1

If you have switched it on, you can turn off highlighting of trailing spaces in comments by setting forth_no_trail_space_error in your vimrc. If you do not want the highlighting of a tabulator following a space in comments, you can turn this off by setting forth_no_tab_space_error.


Comment for the Initial upload:

Thomas E. Vaughan send me a patch, to allow words end with a parenthesis. Such a trailing parenthesis will now no longer start the highlighting for stack comments.

I have also added a fix for a bug in the script, that led to an annoying W18 warning while parsing the script. Bill McCarthy and Ilya Sher found that bug in 2004!
Shame on me, I thought I had applied that fix *two* years ago to the offical version.
Welcome to embarrassment city :-\
 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
forth.vim 1.14 2012-05-27 7.0 Christian Brüssow Dominique Pellé <dominique dot pelle at gmail dot com> made a patch to allow spellchecking of strings, comments, ...
forth.vim 1.13 2012-01-07 6.0 Christian Brüssow Thilo Six <T dot Six at gmx dot de> sent a patch for cpoptions.
See the discussion at http://thread.gmane.org/gmane.editors.vim.devel/32151
forth.vim 1.12 2009-07-07 7.0 Christian Brüssow Josh Grams send a patch to allow the parenthesis comments at the beginning of a line. That patch also fixed a typo in one of the comments. Thank you :-)

I have only tested the file with Vim 7.2, but I think it will also work with Vim 6.X.
forth.vim 1.11 2008-02-09 7.0 Christian Brüssow Shawn K. Quinn <sjquinn at speakeasy dot net> send a big patch with
new words commonly used in Forth programs or defined by GNU Forth.
I also fixed a typo in closing words for class and object definition.
forth.vim 1.10 2007-07-14 7.0 Christian Brüssow Benjamin Krill send me a nice patch to highlight "space errors" in comments (e.g. trailing spaces and/or tabs). Thanks :-)
ip used for rating: 13.59.100.42

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github