wrong syntax highlighting in C

svojvdosku
2007-04-30
2012-11-13
  • svojvdosku
    svojvdosku
    2007-04-30

    Hello all developers of Notepad++, thanks for your great job!
    Here is description of a small bug in highlighting of C/C++.
    Simply try this piece of code:
    #define DATA_CONFIG(nMode,Rate,Rate_4_,nDataRate) \    if (nMode == CONFIG_G) \    { \       nDataRate = (Rate) * MIN_DATARATE + (Rate_4_) * 200; \    } \    else if (nMode == CONFIG_G_1) \    { \       nDataRate = (Rate) * MIN_DATARATE + (Rate_4_) * 100; \    } \    else /*(nMode == CONFIG_G_1)*/ \    { \       nDataRate = (Rate) * MIN_DATARATE; \    }

    after comment /*(nMode == CONFIG_G_1)*/ code is not recognized as part of macro.
    And at all definition of a macro function is not in the "Function List" plugin.
    I think, here some time can be investigated to solve this.