# HG changeset patch
# User ZyX <[email protected]>
# 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 <[email protected]>
-" Last Change: 2010 Sep 21
+" Last Change: 2013 Feb 21
" Credits: Zvezdan Petkovic <[email protected]>
" Neil Schemenauer <[email protected]>
" 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.