Highlight backslash escapes within $'' strings.

Correct highlighting of backslash escapes within "" strings: highlight only
the four specific escape sequences defined there.

Fixes zsh-users/zsh-syntax-highlighting#196.
This commit is contained in:
Daniel Shahaf
2015-09-25 21:18:37 +00:00
parent f4164ac86c
commit 69fcb40275
5 changed files with 75 additions and 5 deletions

View File

@@ -45,6 +45,7 @@ This highlighter defines the following styles:
* `dollar-quoted-argument` - dollar quoted arguments (`` $'foo' ``)
* `dollar-double-quoted-argument` - dollar double quoted arguments ($foo inside "")
* `back-double-quoted-argument` - back double quoted arguments (\x inside "")
* `back-dollar-quoted-argument` - back dollar quoted arguments (\x inside $'')
* `assign` - variable assignments
* `default` - parts of the buffer that do not match anything