Diff of /lexers/LexCPP.cxx [e33e4b] .. [71d931]  Maximize  Restore

Switch to unified view

a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
...
...
492
492
493
    CharacterSet setDoxygen(CharacterSet::setAlpha, "$@\\&<>#{}[]");
493
    CharacterSet setDoxygen(CharacterSet::setAlpha, "$@\\&<>#{}[]");
494
494
495
    CharacterSet setWordStart(CharacterSet::setAlpha, "_", 0x80, true);
495
    CharacterSet setWordStart(CharacterSet::setAlpha, "_", 0x80, true);
496
496
497
  CharacterSet setInvalidRawFirst(CharacterSet::setNone, " )\\\t\v\f\n");
498
497
    if (options.identifiersAllowDollars) {
499
    if (options.identifiersAllowDollars) {
498
        setWordStart.Add('$');
500
        setWordStart.Add('$');
499
    }
501
    }
500
502
501
    int chPrevNonWhite = ' ';
503
    int chPrevNonWhite = ' ';
...
...
652
                        }
654
                        }
653
                    }
655
                    }
654
                    const bool literalString = sc.ch == '\"';
656
                    const bool literalString = sc.ch == '\"';
655
                    if (literalString || sc.ch == '\'') {
657
                    if (literalString || sc.ch == '\'') {
656
                        size_t lenS = strlen(s);
658
                        size_t lenS = strlen(s);
657
                      const bool raw = literalString && sc.chPrev == 'R';
659
                      const bool raw = literalString && sc.chPrev == 'R' && !setInvalidRawFirst.Contains(sc.chNext);
658
                        if (raw)
660
                        if (raw)
659
                            s[lenS--] = '\0';
661
                            s[lenS--] = '\0';
660
                        bool valid =
662
                        bool valid =
661
                            (lenS == 0) ||
663
                            (lenS == 0) ||
662
                            ((lenS == 1) && ((s[0] == 'L') || (s[0] == 'u') || (s[0] == 'U'))) ||
664
                            ((lenS == 1) && ((s[0] == 'L') || (s[0] == 'u') || (s[0] == 'U'))) ||

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks