Skip to content

Commit 33c8322

Browse files
committed
Merge branch 'syntax' into develop
2 parents 70efc4c + 11ec7b4 commit 33c8322

3 files changed

Lines changed: 299 additions & 119 deletions

File tree

README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,15 @@ Default values: ::
329329
" Highlight exceptions
330330
let g:pymode_syntax_highlight_exceptions = g:pymode_syntax_all
331331

332+
" Highlight equal operator
333+
let g:pymode_syntax_highlight_equal_operator = g:pymode_syntax_all
334+
335+
" Highlight stars operator
336+
let g:pymode_syntax_highlight_stars_operator = g:pymode_syntax_all
337+
338+
" Highlight `self`
339+
let g:pymode_syntax_highlight_self = g:pymode_syntax_all
340+
332341
" For fast machines
333342
let g:pymode_syntax_slow_sync = 0
334343

doc/pymode.txt

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,36 @@ PythonMode. These options should be set in your vimrc.
100100

101101
|'pymode_syntax'| Turns off the custom syntax highlighting
102102

103+
|'pymode_syntax_all'| Enable all hightlight groups
104+
105+
|'pymode_syntax_print_as_function'| Hightlight `print` as function
106+
107+
|'pymode_syntax_highlight_equal_operator'| Hightlight `=`
108+
109+
|'pymode_syntax_highlight_stars_operator'| Hightlight `*`
110+
111+
|'pymode_syntax_highlight_self'| Hightlight `self`
112+
113+
|'pymode_syntax_indent_errors'| Hightlight indentation errors
114+
115+
|'pymode_syntax_space_errors'| Hightlight trailing spaces as errors
116+
117+
|'pymode_syntax_string_formating'| Hightlight string formating
118+
119+
|'pymode_syntax_string_format'| Hightlight Str.format syntax
120+
121+
|'pymode_syntax_string_templates'| Hightlight string templates
122+
123+
|'pymode_syntax_doc_tests'| Hightlight doctests
124+
125+
|'pymode_syntax_builtin_objs'| Hightlight builtin objects
126+
127+
|'pymode_syntax_builtin_types'| Hightlight builtin types
128+
129+
|'pymode_syntax_builtin_functions'| Hightlight builtin functions
130+
131+
|'pymode_syntax_highlight_exceptions'| Hightlight builtin exceptions
132+
103133
|'pymode_indent'| Enable/Disable pymode PEP8 indentation
104134

105135
|'pymode_options'| Set default pymode options for
@@ -344,6 +374,111 @@ Default: 1.
344374
If this option is set to 0 then the custom syntax highlighting will
345375
not be used.
346376

377+
------------------------------------------------------------------------------
378+
*'pymode_syntax_all'*
379+
Values: 0 or 1.
380+
Default: 1.
381+
382+
Enabling all hightlight groups.
383+
384+
------------------------------------------------------------------------------
385+
*'pymode_syntax_print_as_function'*
386+
Values: 0 or 1.
387+
Default: 0.
388+
389+
Hightlight `print` as function
390+
391+
------------------------------------------------------------------------------
392+
*'pymode_syntax_highlight_equal_operator'*
393+
Values: 0 or 1.
394+
Default: |'pymode_syntax_all'|.
395+
396+
Hightlight `=`
397+
398+
------------------------------------------------------------------------------
399+
*'pymode_syntax_highlight_stars_operator'*
400+
Values: 0 or 1.
401+
Default: |'pymode_syntax_all'|.
402+
403+
Hightlight `*`
404+
405+
------------------------------------------------------------------------------
406+
*'pymode_syntax_highlight_self'*
407+
Values: 0 or 1.
408+
Default: |'pymode_syntax_all'|.
409+
410+
Hightlight `self`
411+
412+
------------------------------------------------------------------------------
413+
*'pymode_syntax_indent_errors'*
414+
Values: 0 or 1.
415+
Default: |'pymode_syntax_all'|.
416+
417+
Hightlight indentation errors
418+
419+
------------------------------------------------------------------------------
420+
*'pymode_syntax_space_errors'*
421+
Values: 0 or 1.
422+
Default: |'pymode_syntax_all'|.
423+
424+
Hightlight trailing spaces as errors
425+
426+
------------------------------------------------------------------------------
427+
*'pymode_syntax_string_formating'*
428+
Values: 0 or 1.
429+
Default: |'pymode_syntax_all'|.
430+
431+
Hightlight string formating
432+
433+
------------------------------------------------------------------------------
434+
*'pymode_syntax_string_format'*
435+
Values: 0 or 1.
436+
Default: |'pymode_syntax_all'|.
437+
438+
Hightlight Str.format syntax
439+
440+
------------------------------------------------------------------------------
441+
*'pymode_syntax_string_templates'*
442+
Values: 0 or 1.
443+
Default: |'pymode_syntax_all'|.
444+
445+
Hightlight string templates
446+
447+
------------------------------------------------------------------------------
448+
*'pymode_syntax_string_doctests'*
449+
Values: 0 or 1.
450+
Default: |'pymode_syntax_all'|.
451+
452+
Hightlight doctests
453+
454+
------------------------------------------------------------------------------
455+
*'pymode_syntax_builtin_objs'*
456+
Values: 0 or 1.
457+
Default: |'pymode_syntax_all'|.
458+
459+
Hightlight builtin objects
460+
461+
------------------------------------------------------------------------------
462+
*'pymode_syntax_builtin_types'*
463+
Values: 0 or 1.
464+
Default: |'pymode_syntax_all'|.
465+
466+
Hightlight builtin types
467+
468+
------------------------------------------------------------------------------
469+
*'pymode_syntax_builtin_functions'*
470+
Values: 0 or 1.
471+
Default: |'pymode_syntax_all'|.
472+
473+
Hightlight builtin functions
474+
475+
------------------------------------------------------------------------------
476+
*'pymode_syntax_highlight_exceptions'*
477+
Values: 0 or 1.
478+
Default: |'pymode_syntax_all'|.
479+
480+
Hightlight builtin exceptions
481+
347482
------------------------------------------------------------------------------
348483
*'pymode_indent'*
349484
Values: 0 or 1.

0 commit comments

Comments
 (0)