mirror of
https://github.com/gryf/python-syntax.git
synced 2025-12-17 11:30:27 +01:00
Fixed highlighting for raw bytes literals
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
Revision 3.0.4 (2010-11-09):
|
||||||
|
|
||||||
|
- Fixed highlighting for raw bytes literals
|
||||||
|
|
||||||
Revision 3.0.3 (2010-04-09):
|
Revision 3.0.3 (2010-04-09):
|
||||||
|
|
||||||
- Applied patch by Andrea Riciputi with new configuration options
|
- Applied patch by Andrea Riciputi with new configuration options
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
" Language: Python
|
" Language: Python
|
||||||
" Maintainer: Dmitry Vasiliev <dima@hlabs.spb.ru>
|
" Maintainer: Dmitry Vasiliev <dima@hlabs.spb.ru>
|
||||||
" URL: http://www.hlabs.spb.ru/vim/python3.0.vim
|
" URL: http://www.hlabs.spb.ru/vim/python3.0.vim
|
||||||
" Last Change: 2010-04-09
|
" Last Change: 2010-11-09
|
||||||
" Filenames: *.py
|
" Filenames: *.py
|
||||||
" Version: 3.0.3
|
" Version: 3.0.4
|
||||||
"
|
"
|
||||||
" Based on python.vim (from Vim 6.1 distribution)
|
" Based on python.vim (from Vim 6.1 distribution)
|
||||||
" by Neil Schemenauer <nas@python.ca>
|
" by Neil Schemenauer <nas@python.ca>
|
||||||
@@ -22,6 +22,8 @@
|
|||||||
" for the patch fixing highlighting for decorators
|
" for the patch fixing highlighting for decorators
|
||||||
" Andrea Riciputi
|
" Andrea Riciputi
|
||||||
" for the patch with new configuration options
|
" for the patch with new configuration options
|
||||||
|
" Anton Butanaev
|
||||||
|
" for the patch fixing raw bytes literals highlighting
|
||||||
|
|
||||||
"
|
"
|
||||||
" Options:
|
" Options:
|
||||||
@@ -173,10 +175,10 @@ syn match pythonEscape "\\N{[A-Z ]\+}" display contained
|
|||||||
syn match pythonEscapeError "\\N{[^A-Z ]\+}" display contained
|
syn match pythonEscapeError "\\N{[^A-Z ]\+}" display contained
|
||||||
|
|
||||||
" Raw strings
|
" Raw strings
|
||||||
syn region pythonRawString start=+[rR]'+ skip=+\\\\\|\\'\|\\$+ excludenl end=+'+ end=+$+ keepend contains=pythonRawEscape,@Spell
|
syn region pythonRawString start=+[bB]\=[rR]'+ skip=+\\\\\|\\'\|\\$+ excludenl end=+'+ end=+$+ keepend contains=pythonRawEscape,@Spell
|
||||||
syn region pythonRawString start=+[rR]"+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end=+$+ keepend contains=pythonRawEscape,@Spell
|
syn region pythonRawString start=+[bB]\=[rR]"+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end=+$+ keepend contains=pythonRawEscape,@Spell
|
||||||
syn region pythonRawString start=+[rR]"""+ end=+"""+ keepend contains=pythonDocTest2,pythonSpaceError,@Spell
|
syn region pythonRawString start=+[bB]\=[rR]"""+ end=+"""+ keepend contains=pythonDocTest2,pythonSpaceError,@Spell
|
||||||
syn region pythonRawString start=+[rR]'''+ end=+'''+ keepend contains=pythonDocTest,pythonSpaceError,@Spell
|
syn region pythonRawString start=+[bB]\=[rR]'''+ end=+'''+ keepend contains=pythonDocTest,pythonSpaceError,@Spell
|
||||||
|
|
||||||
syn match pythonRawEscape +\\['"]+ display transparent contained
|
syn match pythonRawEscape +\\['"]+ display transparent contained
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user