Closed vittorioromeo closed 7 years ago
This is a partial duplicate of #2870 - the C++ grammar is parsing -
and >
into separate tokens. If you are using a built-in grammar for C++, you should make a feature request to have ->
and other operators parsed as one token.
Or you can use prettify-symbols-mode - see this thread for a discussion on how to make it work for Fira Code.
Actually, I think this is a bug in the built-in C++ grammar. Commit 5598ee0 ensures that identical tokens are merged, but while -
is given scope keyword.operator.c
, the grammar incorrectly assigns >
scope keyword.operator.comparison.c
.
related: atom/language-c#177
Thanks @siegebell for the analysis. Closing as dup of atom/language-c#177
Steps to Reproduce:
"editor.fontLigatures": true
.->
access to a method.Setting the syntax to "Plain Text" makes the ligatures work correctly.
(This also applies to other ligatures, not only
->
.)(This also applies to C syntax highlighting.)