ttcn-syntax : TTCN-3 syntax highlighting file
script karma |
Rating 157/51,
Downloaded by 3066 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Stefan Karlsson |
|
script type |
syntax |
|
description |
I couldn't find any syntax file for TTCN-3, so I made my own. The file is based on ETSI document no. ES 201 873-1 (V2.2.1 2003-02).
For information about TTCN-3, see http://www.etsi.org.
Folds: If the variable "g:ttcn_fold" is defined (e.g. by ":let g:ttcn_fold = 1" in your .vimrc file), folds will automatically be defined for each {...} block.
|
|
install details |
Just drop the file in your local syntax directory (e.g. ~/.vim/syntax).
If you want Vim to automatically detect the file type *.ttcn, you should edit your "filetype.vim" file (on linux it should be located in ~/.vim). For example, my filetype.vim looks like this:
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
au BufNewFile,BufRead *.ttcn setf ttcn << This is the line!
au BufNewFile,BufRead *.antlr setf antlr
augroup END
|
|
script versions (upload new version)
Click on the package to download.
ttcn.vim |
1.1 |
2005-08-10 |
6.0 |
Stefan Karlsson |
Added spell checking support (only comments are spell checked) for those who use Vim 7. |
ttcn.vim |
1.0 |
2004-09-18 |
6.0 |
Stefan Karlsson |
Added variable g:ttcn_minlines. If this variable is set (e.g. let g:ttcn_minlines=100) it will be used to set "minlines" in the syntax synchronization. If it is not set ":syn sync fromstart" will be used. Thanks to John Orr for pointing out a problem that led to this change. |
ip used for rating: 142.132.191.50
|