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

Re: To all syntax file maintainers: examples needed

Expand Messages
  • Dominique PellĂ©
    ... Hi Bram Attached is a sample file for the gprof file type, to test the new regexp engine. The gprof syntax is not part of the official vim, but I have
    Message 1 of 23 , May 24 12:10 AM
    • 0 Attachment
      Bram Moolenaar wrote:

      > With the few files I received I already found two bugs in the new regexp
      > engine.
      >
      > But I received only 7 files. I need many more! So now asking everyone,
      > not just syntax file maintainers, to send me files for testing. Please
      > read the quoted text above for what the file should contain.

      Hi Bram

      Attached is a sample file for the 'gprof' file type, to test
      the new regexp engine.

      The 'gprof' syntax is not part of the official vim, but
      I have a plugin here which you may want to include
      to the official vim if it is useful enough:

      http://www.vim.org/scripts/script.php?script_id=4077

      Since gprof file does not have an official extension,
      you need to do ":setfiletype gprof", or add the following
      lines to $VIMRUNTIME/scripts.vim to automatically
      recognize gprof files:


      diff -r 05b791824368 runtime/scripts.vim
      --- a/runtime/scripts.vim Wed May 22 23:00:40 2013 +0200
      +++ b/runtime/scripts.vim Fri May 24 08:22:33 2013 +0200
      @@ -327,6 +327,12 @@
      elseif s:line1 =~ '^\(commit\|tree\|object\) \x\{40\}\>\|^tag \S\+$'
      set ft=git

      + " Gprof (gnu profiler)
      + elseif s:line1 == 'Flat profile:'
      + \ && s:line2 == ''
      + \ && s:line3 =~ '^Each sample counts as .* seconds.$'
      + set ft=gprof
      +
      " CVS diff
      else
      let s:lnum = 1


      Regards
      Dominique

      --
      --
      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. I ll include the gprof syntax and ftplugin. The gprof_sample.txt is too big and repetitive, I ll throw away some lines. And rename it to
      Message 2 of 23 , May 24 10:45 AM
      • 0 Attachment
        Dominique Pelle wrote:

        > Bram Moolenaar wrote:
        >
        > > With the few files I received I already found two bugs in the new regexp
        > > engine.
        > >
        > > But I received only 7 files. I need many more! So now asking everyone,
        > > not just syntax file maintainers, to send me files for testing. Please
        > > read the quoted text above for what the file should contain.
        >
        > Hi Bram
        >
        > Attached is a sample file for the 'gprof' file type, to test
        > the new regexp engine.
        >
        > The 'gprof' syntax is not part of the official vim, but
        > I have a plugin here which you may want to include
        > to the official vim if it is useful enough:
        >
        > http://www.vim.org/scripts/script.php?script_id=4077
        >
        > Since gprof file does not have an official extension,
        > you need to do ":setfiletype gprof", or add the following
        > lines to $VIMRUNTIME/scripts.vim to automatically
        > recognize gprof files:

        Thanks. I'll include the gprof syntax and ftplugin.

        The gprof_sample.txt is too big and repetitive, I'll throw away some
        lines. And rename it to gprof_sample, otherwise it gets "text"
        filetype.


        --
        BEDEVERE: Wait. Wait ... tell me, what also floats on water?
        ALL: Bread? No, no, no. Apples .... gravy ... very small rocks ...
        ARTHUR: A duck.
        "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

        /// 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.