git » fp-git.git » commit 2c8d28b

Updated fpstates.vim

author dessaya
2004-10-30 01:28:04 UTC
committer dessaya
2004-10-30 01:28:04 UTC
parent 22ccdcbb9ab56aec3f5ec160a43629b336c073e1

Updated fpstates.vim

stuff/vimsyntax/ftdetect/fpconf.vim +2 -0
stuff/vimsyntax/ftdetect/fpstates.vim +2 -0
stuff/vimsyntax/syntax/fpstates.vim +3 -3

diff --git a/stuff/vimsyntax/ftdetect/fpconf.vim b/stuff/vimsyntax/ftdetect/fpconf.vim
index 1f64753..2cd4df7 100644
--- a/stuff/vimsyntax/ftdetect/fpconf.vim
+++ b/stuff/vimsyntax/ftdetect/fpconf.vim
@@ -1 +1,3 @@
 au BufRead,BufNewFile states.conf			set filetype=fpstates
+au BufRead,BufNewFile flags.conf			set filetype=fpflags
+au BufRead,BufNewFile tiles.conf			set filetype=fptiles
diff --git a/stuff/vimsyntax/ftdetect/fpstates.vim b/stuff/vimsyntax/ftdetect/fpstates.vim
index 1f64753..2cd4df7 100644
--- a/stuff/vimsyntax/ftdetect/fpstates.vim
+++ b/stuff/vimsyntax/ftdetect/fpstates.vim
@@ -1 +1,3 @@
 au BufRead,BufNewFile states.conf			set filetype=fpstates
+au BufRead,BufNewFile flags.conf			set filetype=fpflags
+au BufRead,BufNewFile tiles.conf			set filetype=fptiles
diff --git a/stuff/vimsyntax/syntax/fpstates.vim b/stuff/vimsyntax/syntax/fpstates.vim
index 3f3880b..150aed8 100644
--- a/stuff/vimsyntax/syntax/fpstates.vim
+++ b/stuff/vimsyntax/syntax/fpstates.vim
@@ -1,9 +1,9 @@
 " Vim syntax file
 " Language:	FreePrince states file
 " Maintainer:	Diego Essaya <dessaya@fi.uba.ar>
-" Last Change:	$Date: 2004-10-30 00:19:29 $
+" Last Change:	$Date: 2004-10-30 01:28:04 $
 " 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
@@ -19,7 +19,7 @@ syntax match fpComment /#.*$/ contains=fpTodo
 syntax match fpTodo /\<TODO\>/ contained
 syntax match fpState /^\S\+:/me=e-1
 syntax match fpAction /^\taction\>/ms=s+1 nextgroup=fpTitle skipwhite
-syntax match fpTitle /.*/ contained
+syntax match fpTitle /[^#]*/ contained
 syntax match fpProps /^\t\t\(conditions\|next\|steps\|animation\|level\|guardskill\|mark\)\>/ms=s+2
 syntax match fpIdent /^\t\t\t\S\+/ms=s+3 nextgroup=fpValue skipwhite contains=fpNumber,fpOp
 syntax match fpValue /\w\+/ contained