davidrios / jade-tmbundle

A comprehensive textmate / sublime text bundle for the Jade template language.
https://github.com/davidrios/jade-tmbundle
MIT License
102 stars 31 forks source link

Pug - Broken syntax coloring using character "ª" inside an interpolated tag #90

Open alexdima opened 7 years ago

alexdima commented 7 years ago

Moved from Microsoft/vscode#22969 From @patoezequiel


I found a bug in the pug syntax coloring, where if you type a " ª " character inside an interpolated string, it makes the text after said character to be colored like a keyword.

Steps to Reproduce:

  1. In a .pug file, introduce the " ª " character inside the text node of an interpolated tag, for instance:

p The coloring breaks after the #[strong ª] character.

  1. The syntax coloring after the " ª " character breaks, coloring almost anything like a keyword.

image

It happens independently of the color theme applied to the editor, and the bug appears to be only when that specific character is used, you can see that the " º " character in the picture doesn't cause problems in the same circumstances.