|
1 | | -" Vim syntax file |
2 | | -" Language: Python |
3 | | -" Current Maintainer: vim-python organization on GitHub |
4 | | -" URL: https://github.com/vim-python/python-syntax |
5 | | -" Last Change: 2015-11-01 |
6 | | -" Filenames: *.py |
7 | | -" Version: 3.6.0 |
8 | | -" |
9 | | -" Based on python.vim (from Vim 6.1 distribution) |
10 | | -" by Neil Schemenauer <nas at python dot ca> |
11 | | -" |
12 | | -" Please report bugs and feature requests to our issue tracker over at: |
13 | | -" https://github.com/vim-python/python-syntax/issues |
14 | | -" |
15 | | -" Options |
16 | | -" ======= |
17 | | -" |
18 | | -" :let OPTION_NAME = 1 Enable option |
19 | | -" :let OPTION_NAME = 0 Disable option |
20 | | -" |
21 | | -" |
22 | | -" Option to select Python version |
23 | | -" ------------------------------- |
24 | | -" |
25 | | -" python_version_2 Enable highlighting for Python 2 |
26 | | -" (Python 3 highlighting is enabled |
27 | | -" by default). Can also be set as |
28 | | -" a buffer (b:python_version_2) |
29 | | -" variable. |
30 | | -" |
31 | | -" You can also use the following local to buffer commands to switch |
32 | | -" between two highlighting modes: |
33 | | -" |
34 | | -" :Python2Syntax Switch to Python 2 highlighting |
35 | | -" mode |
36 | | -" :Python3Syntax Switch to Python 3 highlighting |
37 | | -" mode |
38 | | -" |
39 | | -" Option names used by the script |
40 | | -" ------------------------------- |
41 | | -" |
42 | | -" python_highlight_builtins Highlight builtin functions and |
43 | | -" objects |
44 | | -" python_highlight_builtin_objs Highlight builtin objects only |
45 | | -" python_highlight_builtin_funcs Highlight builtin functions only |
46 | | -" python_highlight_exceptions Highlight standard exceptions |
47 | | -" python_highlight_string_formatting Highlight % string formatting |
48 | | -" python_highlight_string_format Highlight str.format syntax |
49 | | -" python_highlight_string_templates Highlight string.Template syntax |
50 | | -" python_highlight_indent_errors Highlight indentation errors |
51 | | -" python_highlight_space_errors Highlight trailing spaces |
52 | | -" python_highlight_doctests Highlight doc-tests |
53 | | -" python_print_as_function Highlight 'print' statement as |
54 | | -" function for Python 2 |
55 | | -" python_highlight_file_headers_as_comments |
56 | | -" Highlight shebang and coding |
57 | | -" headers as comments |
58 | | -" |
59 | | -" python_highlight_all Enable all the options above |
60 | | -" NOTE: This option don't override |
61 | | -" any previously set options |
62 | | -" |
63 | | -" python_slow_sync Can be set to 0 for slow machines |
64 | | -" |
65 | | - |
66 | 1 | " For version 5.x: Clear all syntax items |
67 | 2 | " For versions greater than 6.x: Quit when a syntax file was already loaded |
68 | 3 | if v:version < 600 |
|
0 commit comments