atom / language-c

C support in Atom
Other
118 stars 152 forks source link

Add full support for C++11/14 syntax #99

Closed fbbdev closed 7 years ago

fbbdev commented 8 years ago

The syntax highlighter is confused by raw strings when they contain quotes, and some other quirks show up sometimes. Best solution at the moment is to install jbw3/language-cpp14, but this forces me to put -*- C++14 -*- in my source files, breaking other editors.

jplatte commented 8 years ago

Thanks for the tip, language-cpp14 fixes user-defined literal highlighting. You can disable the default language-c package, then you don't need -*- C++14 -*-. It removes C highlighting though.

fbbdev commented 8 years ago

Any progress on this?

alpyre commented 7 years ago
string normal_str="First.\"Second.\"Last.\"";
string raw_str=R"(First.\"Second.\"Last.\")";

I could not reproduce this issue. It is probably fixed already and may be closed.

fbbdev commented 7 years ago

@alpyre the issue regards syntax like this:

string raw_str = R"(First."Second."Last.")";

It doesn't happen with escaped quotes.

Anyway, I just tested this with atom v1.13.1 and it works correctly.