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

Re: [patch] recognize xt/*.t as Perl in filetype.vim

Expand Messages
  • Bram Moolenaar
    ... Thanks. To make it a tiny bit more efficient: let dirname = expand( %:p:h:t ) if expand( %:e ) == t && (dirname == t || dirname == xt ) setf perl
    Message 1 of 3 , Oct 6 6:08 AM
    • 0 Attachment
      Dylan Cali wrote:

      > Currently only t/*.t is recognized as Perl files, but xt/*.t is an equally
      > common convention in the Perl community.
      > Patch attached.

      Thanks. To make it a tiny bit more efficient:

      let dirname = expand("%:p:h:t")
      if expand("%:e") == 't' && (dirname == 't' || dirname == 'xt')
      setf perl
      return 1

      Futility Factor: No experiment is ever a complete failure - it can always
      serve as a negative example.

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