Júlio wrote:

> Providing an identification string is a great idea, i'll contact the Octave
> community and see their reactions and proposals for the string, do you have
> any identifier in mind?
> 
> if (filename matches *.m)
>   if (comment_symbol == '#' || script_last_line == '% octave')
>     filetype=octave
>   else
>     filetype=matlab

Please don't top-post.

If you put something in a comment, you could use -*-octave-*-, so that it
also works with Emacs.

-- 
Q:   How many hardware engineers does it take to change a lightbulb?
A:   None.  We'll fix it in software.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui