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

[DOC+RUNTIME PATCH] Fixed description of python syntax highlighting

Expand Messages
  • ZyX
    # HG changeset patch # User ZyX # Date 1361470750 -14400 # Node ID 05cc28cdb448ac513ee0f85de24b80692004339d # Parent
    Message 1 of 2 , Feb 21, 2013
    View Source
    • 0 Attachment
      # HG changeset patch
      # User ZyX <kp-pav@...>
      # Date 1361470750 -14400
      # Node ID 05cc28cdb448ac513ee0f85de24b80692004339d
      # Parent 8b86b69546a9ea9309ebf7d05e1d443457cd58d8
      Fixed runtime/doc/syntax.txt and one typo in python.vim

      diff -r 8b86b69546a9 -r 05cc28cdb448 runtime/doc/syntax.txt
      --- a/runtime/doc/syntax.txt Wed Feb 20 21:26:00 2013 +0100
      +++ b/runtime/doc/syntax.txt Thu Feb 21 22:19:10 2013 +0400
      @@ -2440,24 +2440,33 @@

      PYTHON *python.vim* *ft-python-syntax*

      -There are four options to control Python syntax highlighting.
      +There are six options to control Python syntax highlighting.

      For highlighted numbers: >
      - :let python_highlight_numbers = 1
      + :let python_no_number_highlight = 1

      For highlighted builtin functions: >
      - :let python_highlight_builtins = 1
      + :let python_no_builtin_highlight = 1

      For highlighted standard exceptions: >
      - :let python_highlight_exceptions = 1
      + :let python_no_exception_highlight = 1
      +
      +For highlighted doctests and code inside: >
      + :let python_no_doctest_highlight = 1
      +or >
      + :let python_no_doctest_code_highlight = 1
      +(first option implies second one).

      For highlighted trailing whitespace and mix of spaces and tabs: >
      - :let python_highlight_space_errors = 1
      + :let python_space_error_highlight = 1

      If you want all possible Python highlighting (the same as setting the
      -preceding three options): >
      +preceding last option and unsetting all other ones): >
      :let python_highlight_all = 1

      +Note: only existence of these options matter, not their value. You can replace
      + 1 above with anything.
      +

      QUAKE *quake.vim* *ft-quake-syntax*

      diff -r 8b86b69546a9 -r 05cc28cdb448 runtime/syntax/python.vim
      --- a/runtime/syntax/python.vim Wed Feb 20 21:26:00 2013 +0100
      +++ b/runtime/syntax/python.vim Thu Feb 21 22:19:10 2013 +0400
      @@ -1,7 +1,7 @@
      " Vim syntax file
      " Language: Python
      " Maintainer: Neil Schemenauer <nas@...>
      -" Last Change: 2010 Sep 21
      +" Last Change: 2013 Feb 21
      " Credits: Zvezdan Petkovic <zpetkovic@...>
      " Neil Schemenauer <nas@...>
      " Dmitry Vasiliev
      @@ -236,7 +236,7 @@
      " Notice that the end of a string, either ''', or """, will end the contained
      " doctest too. Thus, we do *not* need to have it as an end pattern.
      if !exists("python_no_doctest_highlight")
      - if !exists("python_no_doctest_code_higlight")
      + if !exists("python_no_doctest_code_highlight")
      syn region pythonDoctest
      \ start="^\s*>>>\s" end="^\s*$"
      \ contained contains=ALLBUT,pythonDoctest,@Spell

      --
      --
      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 it soon. - Bram -- If you had to identify, in one word, the reason why the human race has not achieved, and never will achieve, its
      Message 2 of 2 , Feb 21, 2013
      View Source
      • 0 Attachment
        ZyX wrote:

        > Fixed runtime/doc/syntax.txt and one typo in python.vim

        Thanks, I'll include it soon.

        - Bram

        --
        If you had to identify, in one word, the reason why the
        human race has not achieved, and never will achieve, its
        full potential, that word would be "meetings."

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