Clear all syntax configurations. Useful if you want to load a reduced set of syntax configurations. After this call, regexps and keyword dictionaries need to be loaded to make the lexer functional again.
(self)
| 71 | self.add_keywords(keywords.KEYWORDS) |
| 72 | |
| 73 | def clear(self): |
| 74 | """Clear all syntax configurations. |
| 75 | Useful if you want to load a reduced set of syntax configurations. |
| 76 | After this call, regexps and keyword dictionaries need to be loaded |
| 77 | to make the lexer functional again.""" |
| 78 | self._SQL_REGEX = [] |
| 79 | self._keywords = [] |
| 80 | |
| 81 | def set_SQL_REGEX(self, SQL_REGEX): |
| 82 | """Set the list of regex that will parse the SQL.""" |
no outgoing calls