summaryrefslogtreecommitdiff
path: root/Misc/Vim/syntax_test.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-11-15 16:10:16 -0500
committerBrett Cannon <brett@python.org>2012-11-15 16:10:16 -0500
commit873f73a98e98fd97f75bd21a3f54aaab269f90ca (patch)
tree1c9394ab4f52e1727079adbcf6fc7d588e6bc2a2 /Misc/Vim/syntax_test.py
parent8f7c4b8a8551702a9f718098b6b3eea2e8d88bb0 (diff)
downloadcpython-git-873f73a98e98fd97f75bd21a3f54aaab269f90ca.tar.gz
Remove the Vim syntax files.
They had become extremely stale (the script to generate the file was Python 2 compatible!). Plus the community took the work and made improvements that are available on www.vim.org. If you want to update Vim's runtime files to the latest available, follow the instructions at http://www.vim.org/runtime.php .
Diffstat (limited to 'Misc/Vim/syntax_test.py')
-rw-r--r--Misc/Vim/syntax_test.py62
1 files changed, 0 insertions, 62 deletions
diff --git a/Misc/Vim/syntax_test.py b/Misc/Vim/syntax_test.py
deleted file mode 100644
index 1d208668d0..0000000000
--- a/Misc/Vim/syntax_test.py
+++ /dev/null
@@ -1,62 +0,0 @@
-"""Test file for syntax highlighting of editors.
-
-Meant to cover a wide range of different types of statements and expressions.
-Not necessarily sensical or comprehensive (assume that if one exception is
-highlighted that all are, for instance).
-
-Extraneous trailing whitespace can't be tested because of svn pre-commit hook
-checks for such things.
-
-"""
-# Comment
-# OPTIONAL: XXX catch your attention
-
-# Statements
-from __future__ import with_statement # Import
-from sys import path as thing
-assert True # keyword
-def foo(): # function definition
- return []
-class Bar(object): # Class definition
- def __enter__(self):
- pass
- def __exit__(self, *args):
- pass
-foo() # UNCOLOURED: function call
-while False: # 'while'
- continue
-for x in foo(): # 'for'
- break
-with Bar() as stuff:
- pass
-if False: pass # 'if'
-elif False: pass
-else: pass
-
-# Constants
-'single-quote', u'unicode' # Strings of all kinds; prefixes not highlighted
-"double-quote"
-"""triple double-quote"""
-'''triple single-quote'''
-r'raw'
-ur'unicode raw'
-'escape\n'
-'\04' # octal
-'\xFF' # hex
-'\u1111' # unicode character
-1 # Integral
-1L
-1.0 # Float
-.1
-1+2j # Complex
-
-# Expressions
-1 and 2 or 3 # Boolean operators
-2 < 3 # UNCOLOURED: comparison operators
-spam = 42 # UNCOLOURED: assignment
-2 + 3 # UNCOLOURED: number operators
-[] # UNCOLOURED: list
-{} # UNCOLOURED: dict
-(1,) # UNCOLOURED: tuple
-all # Built-in functions
-GeneratorExit # Exceptions