Commit 15d6d71e authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2372] use specific constatnt values for Options instead of using the << trick

the previous code doesn't seem to be understandable as I thought, so I
simplfy revert to the more straightforward way.
also added doc for the enum
parent a3dde49a
......@@ -50,11 +50,15 @@ class MasterLexer {
public:
class Token; // we define it separately for better readability
/// \brief Options for getNextToken.
///
/// A compound option, indicating multiple options are set, can be
/// specified using the logical OR operator (operator|()).
enum Options {
NONE = 0, //< No option
INITIAL_WS = 1, ///< recognize begin-of-line spaces
QSTRING = INITIAL_WS << 1, ///< recognize quoted string
NUMBER = QSTRING << 1 ///< recognize numeric text as integer
QSTRING = 2, ///< recognize quoted string
NUMBER = 4 ///< recognize numeric text as integer
};
/// \brief The constructor.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment