source: project/wiki/vim-mode-for-ssp-files @ 16353

Last change on this file since 16353 was 16353, checked in by felix winkelmann, 11 years ago

various changes; added emacs page

File size: 1.2 KB
Line 
1[[tags: vim editors]]
2
3== Vim mode for .ssp files
4
5Vim syntax file for editing Spiffy SSP pages.
6
7
8  "
9  " Chicken Scheme Server Pages syntax
10  " Language: HTML + Scheme
11  " Maintainer: Alex Sandro Queiroz e Silva <asandroq@gmail.com>
12  " Last Change: 2007 Apr 17
13  "
14 
15  if version < 600
16          syn clear
17  elseif exists("b:current_syntax")
18          finish
19  endif
20 
21  if !exists("main_syntax")
22          let main_syntax = "ssp"
23  endif
24 
25  " Mostly HTML
26  runtime! syntax/html.vim
27  unlet! b:current_syntax
28 
29  " With embedded Chicken Scheme
30  let is_chicken = 1
31  syn include syntax/scheme.vim
32  syn region sspScheme matchgroup=Delimiter start="<?scheme" end="?>" contains=schemeSyntax,schemeFunc,schemeOther,schemeConstant,schemeString,schemeBoolean,\
33  schemeChar,schemeNumber,schemeExtSyntax,schemeComment
34 
35  " There are conflicts between Scheme keywords and HTML tags :(
36  " <, =, >, / are not keyword chars in HTML
37  if version < 600
38          set iskeyword=33,35-39,42-46,48-58,63-90,94,95,97-122,126,_
39  else
40          setlocal iskeyword=33,35-39,42-46,48-58,63-90,94,95,97-122,126,_
41  endif
42 
43  if main_syntax == "ssp"
44          unlet main_syntax
45  endif
46  let b:current_syntax = "ssp"
47 
Note: See TracBrowser for help on using the repository browser.