Loading ...
Sorry, an error occurred while loading the content.

Re: [PATCH] A syntax file for Mallard

Expand Messages
  • Bram Moolenaar
    ... 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. -- So when I saw the post
    Message 1 of 4 , Feb 11, 2013
    • 0 Attachment
      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.


      --
      So when I saw the post to comp.editors, I rushed over to the FTP site to
      grab it. So I yank apart the tarball, light x candles, where x= the
      vim version multiplied by the md5sum of the source divided by the MAC of
      my NIC (8A3FA78155A8A1D346C3C4A), put on black robes, dim the lights,
      wave a dead chicken over the hard drive, and summon the power of GNU GCC
      with the magic words "make config ; make!".
      [Jason Spence, compiling Vim 5.0]

      /// Bram Moolenaar -- Bram@... -- 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

      ---
      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 vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Jaromir Hradilek
      ... 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
      Message 2 of 4 , Feb 11, 2013
      • 0 Attachment
        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 vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      • Bram Moolenaar
        ... Thanks. Despite the obvious name it appears no other file type uses this, thus it should be fine. -- Violators can be fined, arrested or jailed for making
        Message 3 of 4 , Feb 12, 2013
        • 0 Attachment
          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.

          Thanks. Despite the obvious name it appears no other file type uses
          this, thus it should be fine.


          --
          Violators can be fined, arrested or jailed for making ugly faces at a dog.
          [real standing law in Oklahoma, United States of America]

          /// Bram Moolenaar -- Bram@... -- 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

          ---
          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 vim_dev+unsubscribe@....
          For more options, visit https://groups.google.com/groups/opt_out.
        Your message has been successfully submitted and would be delivered to recipients shortly.