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

Re: Documentation for $ in pattern

Expand Messages
  • Bram Moolenaar
    ... Yes, $ also means EOL before n . I ll fix the docs. -- ARTHUR: Charge! [They all charge with swords drawn towards the RABBIT. A tremendous twenty
    Message 1 of 2 , Jan 12, 2008
    • 0 Attachment
      Nico Weber wrote:

      > ^ is documented as:
      >
      > ^ At beginning of pattern or after "\|", "\(", "\%(" or "\n": matches
      > start-of-line; at other positions, matches literal '^'. |/zero-width|
      >
      > $ on the other hand is documented as:
      >
      > $ At end of pattern or in front of "\|" or "\)" ("|" or ")" after "\v"):
      > matches end-of-line <EOL>; at other positions, matches literal '$'.
      >
      > I'm having the impression that $ in front of "\n" and "\%(" matches
      > <EOL> as well. Must the documentation be updated?

      Yes, "$" also means EOL before "\n". I'll fix the docs.

      --
      ARTHUR: Charge!
      [They all charge with swords drawn towards the RABBIT. A tremendous twenty
      second fight with Peckinpahish shots and borrowing heavily also on the
      Kung Fu and karate-type films ensues, in which some four KNIGHTS are
      comprehensively killed.]
      ARTHUR: Run away! Run away!
      "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/ \\\
      \\\ 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.