author | dessaya
<dessaya> 2005-03-10 22:26:43 UTC |
committer | dessaya
<dessaya> 2005-03-10 22:26:43 UTC |
parent | 7b3494a7fd50a9646cece7f075a3db09a80f4a7d |
stuff/vimsyntax/syntax/fproom.vim | +58 | -0 |
diff --git a/stuff/vimsyntax/syntax/fproom.vim b/stuff/vimsyntax/syntax/fproom.vim new file mode 100644 index 0000000..bdd9db8 --- /dev/null +++ b/stuff/vimsyntax/syntax/fproom.vim @@ -0,0 +1,58 @@ +" Vim syntax file +" Language: FreePrince resources description file (resources.conf) +" Maintainer: Diego Essaya <dessaya@fi.uba.ar> +" Last Change: $Date: 2005-03-10 22:26:43 $ +" URL: http://www.fp.princed.com.ar/ +" $Revision: 1.1 $ + +" For version 5.x: Clear all syntax items +" For version 6.x: Quit when a syntax file was already loaded +if version < 600 + syntax clear +elseif exists("b:current_syntax") + finish +endif + +syntax case ignore + +syntax match fpError /\S[^#]*.*/ contained contains=fpComment +syntax match fpErrorLine /\s*\S\+/ contains=fpError +highlight link fpError Error + +"------------------- + +syntax match fpDrawY /\S\+/ contained contains=fpIdent,fpOp,fpNumber nextgroup=fpCondition skipwhite +syntax match fpDrawX /\S\+/ contained contains=fpIdent,fpOp,fpNumber nextgroup=fpDrawY skipwhite +syntax match fpDrawLine /^\s*draw\S*\>/ contains=fpKeyword nextgroup=fpDrawX skipwhite + +"------------------- + +syntax match fpCondition /.*/ contains=fpIdent,fpOp,fpNumber,fpError +syntax match fpCondLine /^\s*cond\>/ contains=fpKeyword nextgroup=fpExpression skipwhite + +"------------------- + +syntax match fpXXIdent /\<\a\w*\>/ contained contains=fpIdent +syntax match fpXXLine /^XX\>/ contains=fpKeyword nextgroup=fpXXIdent skipwhite + +"------------------- + +syntax match fpKeyword /\<\a\w*\>/ contained +highlight link fpKeyword Keyword + +syntax match fpIdent /\<\a\w*\>/ contained +highlight link fpIdent Identifier + +syntax match fpNumber /\d\+/ contained +highlight link fpNumber Constant + +syntax match fpOp /[:;\-=<>+()*&^%$@|!~.,/]/ contained +highlight link fpOp Operator + +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 +