author | dessaya
<dessaya> 2005-03-10 15:02:12 UTC |
committer | dessaya
<dessaya> 2005-03-10 15:02:12 UTC |
parent | 2145164b1d9a891e3b914d799a9eceeab45c8f3b |
stuff/vimsyntax/syntax/fpflags.vim | +19 | -9 |
diff --git a/stuff/vimsyntax/syntax/fpflags.vim b/stuff/vimsyntax/syntax/fpflags.vim index 39becde..51d11ac 100644 --- a/stuff/vimsyntax/syntax/fpflags.vim +++ b/stuff/vimsyntax/syntax/fpflags.vim @@ -1,9 +1,9 @@ " Vim syntax file " Language: FreePrince flags.conf file " Maintainer: Diego Essaya <dessaya@fi.uba.ar> -" Last Change: $Date: 2004-10-30 01:28:55 $ +" Last Change: $Date: 2005-03-10 15:02:12 $ " URL: http://www.fp.princed.com.ar/ -" $Revision: 1.1 $ +" $Revision: 1.2 $ " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded @@ -13,15 +13,25 @@ elseif exists("b:current_syntax") finish endif -syn case ignore +syntax case ignore -syntax match fpComment /#.*$/ contains=fpTodo -syntax match fpTodo /\<TODO\>/ contained +syntax match fpError /\S[^#]*.*/ contained contains=fpComment +syntax match fpErrorLine /\s*\S\+/ contains=fpError +highlight link fpError Error + +"------------------- + +syntax match fpFlagDesc /.*/ contained contains=fpComment +highlight link fpFlagDesc String +syntax match fpFlagline /^\a\+/ nextgroup=fpFlagDesc contains=fpComment +highlight link fpFlagLine Operator -syntax match fpFlag /^\s*.\>/ nextgroup=fpDescription -syntax match fpDescription /[^#]*/ contained +"------------------- +syntax match fpComment /#.*$/ contains=fpTodo contained +syntax match fpCommentedLine /\s*#.*$/ contains=fpComment highlight link fpComment Comment + +syntax match fpTodo /\<TODO\>/ contained highlight link fpTodo Todo -highlight link fpFlag Identifier -highlight link fpDescription Function +