On 02/11/2013 11:40 PM, Bram Moolenaar wrote:
Jaromir Hradilek wrote:
Attached is runtime/syntax/mallard.vim, a syntax file for the Mallard
[1] markup language. It is based on the latest version of the Mallard
Mallard 1.0 DRAFT as of Monday, 11 February 2013.
Mallard is an XML-based markup language that is extensively used by the
GNOME project, and as far as I know, the only text editor that provides
support for it is currently gedit. It would be nice for Vim to be the
second editor to support this promising language.
Thanks, I'll probably include it soon.
How do we detect a mallard file? Would be nice to add a line in
$VIMRUNTIME/filetype.vim.
Thank you very much, Bram. Mallard uses .page as a filename extension,
so adding the following line to the $VIMRUNTIME/filetype.vim file should
be sufficient:
au BufNewFile,BufRead *.page setf mallard
A patch is attached.
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--- a/runtime/filetype.vim 2013-02-12 02:06:39.155367301 +0100
+++ b/runtime/filetype.vim 2013-02-12 02:15:35.818128638 +0100
@@ -1079,6 +1079,9 @@
" MakeIndex
au BufNewFile,BufRead *.ist,*.mst setf ist
+" Mallard
+au BufNewFile,BufRead *.page setf mallard
+
" Manpage
au BufNewFile,BufRead *.man setf man