Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:vim:syntax:progress [2010/02/20 22:56] – billh | docs: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=/"/ | + | " we say ' |
- | syn region singlestring start=/'/ | + | " block; for instance, we don't want a double quoted string containing the |
- | syn region form start=/^\s*form.*/ end=/ | + | " letters END and a period to actually end a real region |
- | syn region frame start=/^\s*\(def\|define\) frame.*/ end=/ | + | syn region doublestring start=/"/ |
- | syn region temptable start=/^\s*\(def\|define\) \(shared \)\=temp-table.*/ | + | syn region singlestring start=/'/ |
- | "syn region | + | syn region form start=/\(\s\|^\)form.*/ end=/ |
- | + | syn region frame start=/\(\s\|^\)\(def\|define\) frame.*/ end=/ | |
- | syn region caseregion start=/case[^: | + | syn region temptable start=/\(\s\|^\)\(def\|define\) \(shared \)\=temp-table.*/ |
- | syn region doregion start=/ | + | syn region |
- | syn region foreachregion start=/for each/ end=/ | + | syn region doregion start=/\(\s\|^\)do\s*: |
- | syn region procedure start=/ | + | syn region repeatregion start=/ |
+ | syn region foreachregion start=/\(\s\|^\)for each/ end=/\(\s\|^\)end[^.]*\./ contains=ALLBUT, | ||
+ | syn region procedure start=/\(\s\|^\)procedure / end=/\(\s\|^\)end[^.]*\./ contains=ALLBUT, | ||
" 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 | ||
</ | </ |