Skip to content

Commit 8c4e468

Browse files
committed
Enable all highlighting.
1 parent 4278b73 commit 8c4e468

File tree

3 files changed

+320
-351
lines changed

3 files changed

+320
-351
lines changed

README.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,51 @@ Default values: ::
222222
" Set default pymode python other options
223223
let g:pymode_options_other = 1
224224

225+
226+
Syntax highlight
227+
----------------
228+
229+
Default values: ::
230+
225231
" Enable pymode's custom syntax highlighting
226232
let g:pymode_syntax = 1
227233

234+
" Enable all python highlightings
235+
let g:pymode_syntax_all = 1
236+
237+
" Highlight "print" as function
238+
leg g:pymode_syntax_print_as_function = 0
239+
240+
" Highlight indentation errors
241+
leg g:pymode_syntax_indent_errors = g:pymode_syntax_all
242+
243+
" Highlight trailing spaces
244+
leg g:pymode_syntax_space_errors = g:pymode_syntax_all
245+
246+
" Highlight string formatting
247+
leg g:pymode_syntax_string_formatting = g:pymode_syntax_all
248+
249+
" Highlight str.format syntax
250+
leg g:pymode_syntax_string_format = g:pymode_syntax_all
251+
252+
" Highlight string.Template syntax
253+
let g:pymode_syntax_string_templates = g:pymode_syntax_all
254+
255+
" Highlight doc-tests
256+
let g:pymode_syntax_doctests = g:pymode_syntax_all
257+
258+
" Highlight builtin objects (__doc__, self, etc)
259+
let g:pymode_syntax_builtin_objs = g:pymode_syntax_all
260+
261+
" Highlight builtin functions
262+
let g:pymode_syntax_builtin_funcs = g:pymode_syntax_all
263+
264+
" Highlight exceptions
265+
let g:pymode_syntax_highlight_exceptions = g:pymode_syntax_all
266+
267+
" For fast machines
268+
let g:pymode_syntax_slow_sync = 0
269+
228270

229271
Default keys
230272
============
@@ -329,6 +371,10 @@ Copyright (C) 2011 Kirill Klenov (klen_)
329371
Copyright (c) 2005 Divmod, Inc.
330372
http://www.divmod.com/
331373

374+
**Python syntax for vim**
375+
Copyright (c) 2010 Dmitry Vasiliev
376+
http://www.hlabs.spb.ru/vim/python.vim
377+
332378

333379
License
334380
=======

doc/pymode.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ You may set |exrc| and |secure| in your |vimrc| for auto set custom settings fro
373373
Copyright (c) 2005 Divmod, Inc.
374374
http://www.divmod.com/
375375

376+
Python syntax for vim:
377+
Copyright (c) 2010 Dmitry Vasiliev
378+
http://www.hlabs.spb.ru/vim/python.vim
379+
376380

377381
==============================================================================
378382
7. License ~

0 commit comments

Comments
 (0)