You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The grammar for RegExp literals in ES6 allows / to appear without a preceding \ in character class expressions (see RegularExpressionClassChar in the grammar). However, vim-es6 highlights such expressions incorrectly. For example, in the following:
/foo[/]bar/
vim-es6 does not highlight ]bar/ as part of the regular expression.
Note that this is made more significant by the the ESLint no-useless-escape rule (which is enabled by popular configurations such as the airbnb config) which produces a warning when \ is added.
Thanks,
Kevin
The text was updated successfully, but these errors were encountered:
The grammar for RegExp literals in ES6 allows
/
to appear without a preceding\
in character class expressions (seeRegularExpressionClassChar
in the grammar). However, vim-es6 highlights such expressions incorrectly. For example, in the following:/foo[/]bar/
vim-es6 does not highlight
]bar/
as part of the regular expression.Note that this is made more significant by the the ESLint no-useless-escape rule (which is enabled by popular configurations such as the airbnb config) which produces a warning when
\
is added.Thanks,
Kevin
The text was updated successfully, but these errors were encountered: