diff --git a/CHANGES.txt b/CHANGES.txt index 0b416c0..7166534 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,7 @@ +Revision 3.0.4 (2010-11-09): + + - Fixed highlighting for raw bytes literals + Revision 3.0.3 (2010-04-09): - Applied patch by Andrea Riciputi with new configuration options diff --git a/python3.0.vim b/python3.0.vim index adc85aa..bfb2058 100644 --- a/python3.0.vim +++ b/python3.0.vim @@ -2,9 +2,9 @@ " Language: Python " Maintainer: Dmitry Vasiliev " URL: http://www.hlabs.spb.ru/vim/python3.0.vim -" Last Change: 2010-04-09 +" Last Change: 2010-11-09 " Filenames: *.py -" Version: 3.0.3 +" Version: 3.0.4 " " Based on python.vim (from Vim 6.1 distribution) " by Neil Schemenauer @@ -22,6 +22,8 @@ " for the patch fixing highlighting for decorators " Andrea Riciputi " for the patch with new configuration options +" Anton Butanaev +" for the patch fixing raw bytes literals highlighting " " Options: @@ -173,10 +175,10 @@ syn match pythonEscape "\\N{[A-Z ]\+}" display contained syn match pythonEscapeError "\\N{[^A-Z ]\+}" display contained " Raw strings -syn region pythonRawString start=+[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=+[rR]"""+ end=+"""+ keepend contains=pythonDocTest2,pythonSpaceError,@Spell -syn region pythonRawString start=+[rR]'''+ end=+'''+ keepend contains=pythonDocTest,pythonSpaceError,@Spell +syn region pythonRawString start=+[bB]\=[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=+[bB]\=[rR]"""+ end=+"""+ keepend contains=pythonDocTest2,pythonSpaceError,@Spell +syn region pythonRawString start=+[bB]\=[rR]'''+ end=+'''+ keepend contains=pythonDocTest,pythonSpaceError,@Spell syn match pythonRawEscape +\\['"]+ display transparent contained diff --git a/test.py b/test.py index 0557ec3..43e4231 100644 --- a/test.py +++ b/test.py @@ -76,6 +76,10 @@ b"test" b"тестtest" +br"test" + +br"\a\b" + # Formattings " %f "