Diff of /lexers/LexCPP.cxx [b963f0] .. [9f8ac1]  Maximize  Restore

Switch to unified view

a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
...
...
670
                        }
670
                        }
671
                    }
671
                    }
672
                    sc.SetState(SCE_C_DEFAULT|activitySet);
672
                    sc.SetState(SCE_C_DEFAULT|activitySet);
673
                }
673
                }
674
                break;
674
                break;
675
            case SCE_C_PREPROCESSOR:  
675
            case SCE_C_PREPROCESSOR:
676
                if (options.stylingWithinPreprocessor) {
676
                if (options.stylingWithinPreprocessor) {
677
                    if (IsASpace(sc.ch)) {
677
                    if (IsASpace(sc.ch)) {
678
                        sc.SetState(SCE_C_DEFAULT|activitySet);
678
                        sc.SetState(SCE_C_DEFAULT|activitySet);
679
                    }
679
                    }
680
                } else if (isStringInPreprocessor && (sc.Match('>') || sc.Match('\"'))) {
680
                } else if (isStringInPreprocessor && (sc.Match('>') || sc.Match('\"'))) {
681
                    isStringInPreprocessor = false;
681
                    isStringInPreprocessor = false;
682
                } else if (!isStringInPreprocessor) {
682
                } else if (!isStringInPreprocessor) {
683
                    if ((isIncludePreprocessor && sc.Match('<')) || sc.Match('\"')) {
683
                    if ((isIncludePreprocessor && sc.Match('<')) || sc.Match('\"')) {
684
                        isStringInPreprocessor = true;
684
                        isStringInPreprocessor = true;
685
                    } else if (sc.Match('/', '*')) {
685
                    } else if (sc.Match('/', '*')) {
686
                      if (sc.Match("/**") || sc.Match("/*!")) {
687
                          sc.SetState(SCE_C_PREPROCESSORCOMMENTDOC|activitySet);
688
                          sc.Forward();
689
                      } else {
686
                        sc.SetState(SCE_C_PREPROCESSORCOMMENT|activitySet);
690
                         sc.SetState(SCE_C_PREPROCESSORCOMMENT|activitySet);
691
                      }
687
                        sc.Forward();   // Eat the *
692
                        sc.Forward();   // Eat the *
688
                    } else if (sc.Match('/', '/')) {
693
                    } else if (sc.Match('/', '/')) {
689
                        sc.SetState(SCE_C_DEFAULT|activitySet);
694
                        sc.SetState(SCE_C_DEFAULT|activitySet);
690
                    }
695
                    }
691
                }
696
                }
692
                break;
697
                break;
693
            case SCE_C_PREPROCESSORCOMMENT:
698
            case SCE_C_PREPROCESSORCOMMENT:
699
          case SCE_C_PREPROCESSORCOMMENTDOC:
694
                if (sc.Match('*', '/')) {
700
                if (sc.Match('*', '/')) {
695
                    sc.Forward();
701
                    sc.Forward();
696
                    sc.ForwardSetState(SCE_C_PREPROCESSOR|activitySet);
702
                    sc.ForwardSetState(SCE_C_PREPROCESSOR|activitySet);
697
                    continue;   // Without advancing in case of '\'.
703
                    continue;   // Without advancing in case of '\'.
698
                }
704
                }

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks