Menu

#60 Incorrect syntax highlighting of single line comments

None
pending
2013-05-04
2013-04-25
Alvin Wong
No

Single line comments doesn't expand to the next line if ending with a backslash \.

Code to reproduce:

#include <iostream>

int main(){
    std::cout << "Path to typical Windows directory: ";
    // We need to escape backslashes: \
    std::cout << "C:\\Windows\\" << std::endl;
    std::cout << "Can you see it?" << std::endl;
    return 0;
}

(Seems that I will also need to report this to sourceforge.net)

Discover when reading this code.

1 Attachments

Discussion

  • Alvin Wong

    Alvin Wong - 2013-04-25
    • Milestone: -->
     
  • orwelldevcpp

    orwelldevcpp - 2013-05-04

    Confirmed, but don't know how to fix it yet.

     
  • orwelldevcpp

    orwelldevcpp - 2013-05-04
    • status: open --> pending
    • assigned_to: orwelldevcpp
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.