hdima / python-syntax

Python syntax highlighting script for Vim
http://www.vim.org/scripts/script.php?script_id=790
MIT License
364 stars 109 forks source link

Remove all trailing slashes from pythonBytesEscape #61

Closed fffergal closed 6 years ago

fffergal commented 7 years ago

Considering trailing slashes a string escape seems to have been removed for other string types when merging Python 2 and 3 syntaxes.

I'm currently working on an MR for hynek/vim-python-pep8-indent to properly ignore braces in byte strings https://github.com/hynek/vim-python-pep8-indent/pull/68. Unfortunately python-syntax marking all trailing \ as a type of string is causing problems with correct indenting.

Outside of that, I don't think all trailing \ should be considered pythonBytesEscape when they are not inside a pythonBytes.

fffergal commented 6 years ago

Removing from my dashboard.