Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:vim:syntax:progress [2009/01/20 00:16] – created billh | docs:vim:syntax:progress [2010/05/12 13:21] (current) – billh | ||
---|---|---|---|
Line 2: | Line 2: | ||
* location: $VIMFILES/ | * location: $VIMFILES/ | ||
< | < | ||
+ | " fix problems with nested comments | ||
+ | try | %s/ | ||
+ | |||
syn clear | syn clear | ||
syn case ignore | syn case ignore | ||
- | syn keyword keyword if then else for each next run do find | + | syn keyword keyword |
- | syn keyword define define def as var variable parameter | + | " this section causes problems with procedure folding and folding of the |
- | syn keyword type integer character date logical | + | " related items |
+ | "syn keyword conditional | ||
+ | "syn keyword repeat | ||
+ | syn keyword function locked avail substring trim | ||
+ | " this section causes a problem with the temp-table folding | ||
+ | "syn keyword define | ||
+ | "syn match define / | ||
+ | syn keyword type int integer | ||
syn keyword boolean true false | syn keyword boolean true false | ||
- | syn region procedure start=/ | + | " we say ' |
- | syn region comment start=/ | + | " block; for instance, we don't want a double quoted string containing the |
+ | " letters END and a period to actually end a real region | ||
+ | syn region | ||
+ | syn region singlestring start=/'/ | ||
+ | syn region form start=/ | ||
+ | syn region frame start=/ | ||
+ | syn region temptable start=/ | ||
+ | syn region caseregion start=/ | ||
+ | syn region doregion | ||
+ | syn region repeatregion start=/ | ||
+ | syn region foreachregion start=/ | ||
+ | syn region procedure start=/ | ||
+ | |||
+ | " comments work unless a nested comment ends without a space before ending the | ||
+ | " outer comment: example /* test /* nest */*/ | ||
+ | syn region comment start=/ | ||
+ | |||
+ | " use these to help identify syntax bugs...rename the above regions with or | ||
+ | " without a T on the end; then set foldnestmax=20 below | ||
+ | hi caseregionT guifg=black guibg=yellow | ||
+ | hi doregionT guifg=white guibg=blue | ||
+ | hi foreachregionT guifg=white guibg=green | ||
+ | hi procedureT guifg=white guibg=brown | ||
+ | |||
+ | hi link doublestring String | ||
+ | hi link singlestring String | ||
+ | |||
+ | setl fen | ||
+ | setl foldnestmax=1 | ||
+ | "setl foldnestmax=20 | ||
+ | setl foldlevel=0 | ||
+ | setl foldmethod=syntax | ||
+ | syn sync fromstart | ||
- | set fen | + | " the default progress syntax file is using set expandtab which screws up |
- | set foldnestmax=1 | + | " other new buffers |
- | set foldlevel=0 | + | set noexpandtab |
- | set foldmethod=syntax | + | setl expandtab |
</ | </ |