On Sat, Nov 11, 2006 at 02:54:55PM +0000, Rui Gon?alves wrote:
> I'm creating a new syntax file for vim and i have some doubts:
> 1) how can i detect the end-of-file?
> (i need match the expression "end [a-zA-Z][a-zA-Z0-9]*" followed of an EOF)
> 
> 2) how can i associate a syntax file to a extension?

1)
:h pattern
quote:
      ordinary atom ~
      magic   nomagic   matches ~
|/\%$|  \%$     \%$     end of file |/zero-width|

2)
See vim help
:h syntax.vim
especially
:h syntax-loading ?
or just put your file containing the syntax commands into
vim/syntax/filetype or /vim/after/syntax/filetype

HTH
Marc

Reply via email to