Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:vim:syntax:progress [2010/02/20 22:56] billhdocs:vim:syntax:progress [2010/05/12 13:21] (current) billh
Line 20: Line 20:
 syn keyword boolean true false syn keyword boolean true false
  
-syn region doublestring start=/"/ end=/"/ +" we say 'extend' below to make sure that these items don't end the parent 
-syn region singlestring start=/'/ end=/'/ +" block; for instance, we don't want a double quoted string containing the 
-syn region form start=/^\s*form.*/ end=/\.$\|\.\s/ contains=comment fold +" letters END and a period to actually end a real region 
-syn region frame start=/^\s*\(def\|define\) frame.*/ end=/\.$\|\.\s/ contains=comment fold +syn region doublestring start=/"/ end=/"/ extend 
-syn region temptable start=/^\s*\(def\|define\) \(shared \)\=temp-table.*/ end=/\.$\|\.\s/ contains=comment fold +syn region singlestring start=/'/ end=/'/ extend 
-"syn region procedure start=/^\s*procedure .*/ end=/^end.*/ contains=ALLBUT,procedure fold +syn region form start=/\(\s\|^\)form.*/ end=/\.$\|\.\s/ contains=comment fold 
- +syn region frame start=/\(\s\|^\)\(def\|define\) frame.*/ end=/\.$\|\.\s/ contains=comment fold 
-syn region caseregion start=/case[^:.]*:/ end=/end[^.]*\./ contains=ALLBUT,procedure fold keepend extend +syn region temptable start=/\(\s\|^\)\(def\|define\) \(shared \)\=temp-table.*/ end=/\.$\|\.\s/ contains=comment fold 
-syn region doregion start=/do\s*:\|do\s\+\(while\|until\)[^:.]*[:.]/ end=/end[^.]*\./ contains=ALLBUT,procedure fold keepend extend +syn region caseregion start=/\(\s\|^\)case[^:.]*:/ end=/\(\s\|^\)end[^.]*\./ contains=ALLBUT,procedure fold keepend extend 
-syn region foreachregion start=/for each/ end=/end[^.]*\./ contains=ALLBUT,procedure fold keepend extend +syn region doregion start=/\(\s\|^\)do\s*:\|do\s\+\(while\|until\)[^:.]*[:.]/ end=/\(\s\|^\)end[^.]*\./ contains=ALLBUT,procedure fold keepend extend 
-syn region procedure start=/procedure / end=/end[^.]*\./ contains=ALLBUT,procedure fold keepend+syn region repeatregion start=/\(\s\|^\)repeat\s*:/ end=/\(\s\|^\)end[^.]*\./ contains=ALLBUT,procedure fold keepend extend 
 +syn region foreachregion start=/\(\s\|^\)for each/ end=/\(\s\|^\)end[^.]*\./ contains=ALLBUT,procedure fold keepend extend 
 +syn region procedure start=/\(\s\|^\)procedure / end=/\(\s\|^\)end[^.]*\./ contains=ALLBUT,procedure fold keepend
  
 " comments work unless a nested comment ends without a space before ending the " comments work unless a nested comment ends without a space before ending the
Line 43: Line 45:
 hi procedureT guifg=white guibg=brown hi procedureT guifg=white guibg=brown
  
-set fen +hi link doublestring String 
-set foldnestmax=1 +hi link singlestring String 
-"set foldnestmax=20 + 
-set foldlevel=0 +setl fen 
-set foldmethod=syntax+setl foldnestmax=1 
 +"setl foldnestmax=20 
 +setl foldlevel=0 
 +setl foldmethod=syntax
 syn sync fromstart syn sync fromstart
 +
 +" the default progress syntax file is using set expandtab which screws up
 +" other new buffers
 +set noexpandtab
 +setl expandtab
 </code> </code>
  • docs/vim/syntax/progress.1266731786.txt.gz
  • Last modified: 2010/02/20 22:56
  • by billh