jeff-hykin / better-cpp-syntax

💾 The source of VS Code's C++ syntax highlighting
GNU General Public License v3.0
155 stars 30 forks source link

Code conversion bug? `[^Pattern.new(\n match: \\/\\w\\/,\n)]` #588

Closed RedCMD closed 2 years ago

RedCMD commented 2 years ago

When scrolling through the cpp/tmLanguage.json file; I noticed this very weird character-class: [^Pattern.new(\n match: \\/\\w\\/,\n)] I assume it was not intentional https://github.com/jeff-hykin/better-cpp-syntax/blob/219665b119c368c7188f0bbc059582a15a5634e4/syntaxes/cpp.tmLanguage.json#L7220 image

jeff-hykin commented 2 years ago

That is concerning, and definitely a bug. Really strange that it only happened for member access too

jeff-hykin commented 2 years ago

Alright fixed it, thanks for the catch

RedCMD commented 2 years ago

[^\\w] is the same as \\W