pike.git / lib / modules / Search.pmod / Grammar.pmod / Lexer.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Grammar.pmod/Lexer.pmod:22:    TOKEN_RPAREN,   // TOKEN_LBRACKET,   // TOKEN_RBRACKET,       TOKEN_TEXT, // word or phrase       TOKEN_AND,    TOKEN_OR,   }    - static mapping(string : Token) keywords = ([ + protected mapping(string : Token) keywords = ([    // "not" : TOKEN_NOT,    "and" : TOKEN_AND,    "or" : TOKEN_OR,   ]);      // These characters cannot be part of a word, even if they are preceded by   // word characters. - static multiset(int) specialChars = (< + protected multiset(int) specialChars = (<    ':', '(', ')',   >);      int isWhiteSpace(int ch) { return ch == '\t' || ch == ' '; }      //! Tokenizes a query into tokens for later use by a parser.   //! @param query   //! The query to tokenize.   //! @returns   //! An array containing the tokens: