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

[PATCH] syntaxcomplete.vim does not show last syntax group

Expand Messages
  • hpnpwd
    Hello. I m using vim 7.2, and .vimrc as follows. au FileType * set omnifunc=syntaxcomplete#Complete However, the last syntax group in :syn list does not show
    Message 1 of 4 , Jan 27, 2010
      Hello.

      I'm using vim 7.2, and .vimrc as follows.
      au FileType * set omnifunc=syntaxcomplete#Complete
      However, the last syntax group in ":syn list" does not show in
      completion menu.

      I wrote a patch to fix this problem.
      Regards,
      hpnpwd.

      diff -r 01c5b19eaee0 -r 0ebd175912bd runtime/autoload/
      syntaxcomplete.vim
      --- a/runtime/autoload/syntaxcomplete.vim Thu Jan 28 12:30:31 2010
      +0900
      +++ b/runtime/autoload/syntaxcomplete.vim Thu Jan 28 13:22:01 2010
      +0900
      @@ -314,7 +314,7 @@
      " \ze - end the match
      " \n\w - at the first newline starting with a
      character
      let syntax_group = matchstr(a:syntax_full,
      - \ "\n".a:group_name.'\s\+xxx\s\+\zs.\{-}
      \ze'."\n".'\w'
      + \ "\n".a:group_name.'\s\+xxx\s\+\zs.\{-}\ze\(\n\w\|\%$
      \)'
      \ )

      if syntax_group != ""

      --
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
    • David Fishburn
      ... Thanks for the patch. I will review it, incorporate it and submit an update to Bram. Dave -- You received this message from the vim_dev maillist. For
      Message 2 of 4 , Jan 29, 2010
        On Wed, Jan 27, 2010 at 11:44 PM, hpnpwd <hpnpwd@...> wrote:
        > Hello.
        >
        > I'm using vim 7.2, and .vimrc as follows.
        > au FileType * set omnifunc=syntaxcomplete#Complete
        > However, the last syntax group in ":syn list" does not show in
        > completion menu.
        >
        > I wrote a patch to fix this problem.

        Thanks for the patch.

        I will review it, incorporate it and submit an update to Bram.

        Dave

        --
        You received this message from the "vim_dev" maillist.
        For more information, visit http://www.vim.org/maillist.php
      • David Fishburn
        ... hpnpwd, I have verified the patch. Thanks for providing it. Bram, here is an updated copy of autoload/syntaxcomplete.vim. Could you please include it.
        Message 3 of 4 , Jan 31, 2010
          On Fri, Jan 29, 2010 at 9:32 AM, David Fishburn <dfishburn.vim@...> wrote:
          > On Wed, Jan 27, 2010 at 11:44 PM, hpnpwd <hpnpwd@...> wrote:
          >> Hello.
          >>
          >> I'm using vim 7.2, and .vimrc as follows.
          >> au FileType * set omnifunc=syntaxcomplete#Complete
          >> However, the last syntax group in ":syn list" does not show in
          >> completion menu.

          hpnpwd, I have verified the patch. Thanks for providing it.

          Bram, here is an updated copy of autoload/syntaxcomplete.vim.

          Could you please include it.

          Thanks,
          Dave

          syntaxcomplete.vim maintainer.

          --
          You received this message from the "vim_dev" maillist.
          For more information, visit http://www.vim.org/maillist.php
        • Bram Moolenaar
          ... Thanks, I ll put it in the queue. -- hundred-and-one symptoms of being an internet addict: 179. You wonder why your household garbage can doesn t have an
          Message 4 of 4 , Feb 1, 2010
            David Fishburn wrote:

            > On Fri, Jan 29, 2010 at 9:32 AM, David Fishburn <dfishburn.vim@...> wrote:
            > > On Wed, Jan 27, 2010 at 11:44 PM, hpnpwd <hpnpwd@...> wrote:
            > >> Hello.
            > >>
            > >> I'm using vim 7.2, and .vimrc as follows.
            > >> au FileType * set omnifunc=syntaxcomplete#Complete
            > >> However, the last syntax group in ":syn list" does not show in
            > >> completion menu.
            >
            > hpnpwd, I have verified the patch. Thanks for providing it.
            >
            > Bram, here is an updated copy of autoload/syntaxcomplete.vim.
            >
            > Could you please include it.

            Thanks, I'll put it in the queue.

            --
            hundred-and-one symptoms of being an internet addict:
            179. You wonder why your household garbage can doesn't have an
            "empty recycle bin" button.

            /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
            /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
            \\\ download, build and distribute -- http://www.A-A-P.org ///
            \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

            --
            You received this message from the "vim_dev" maillist.
            For more information, visit http://www.vim.org/maillist.php
          Your message has been successfully submitted and would be delivered to recipients shortly.