LexerSimple.h 838 B

12345678910111213141516171819202122232425262728293031
  1. // Scintilla source code edit control
  2. /** @file LexerSimple.h
  3. ** A simple lexer with no state.
  4. **/
  5. // Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
  6. // The License.txt file describes the conditions under which this software may be distributed.
  7. #ifndef LEXERSIMPLE_H
  8. #define LEXERSIMPLE_H
  9. #ifdef SCI_NAMESPACE
  10. namespace Scintilla {
  11. #endif
  12. // A simple lexer with no state
  13. class LexerSimple : public LexerBase {
  14. const LexerModule *module;
  15. std::string wordLists;
  16. public:
  17. explicit LexerSimple(const LexerModule *module_);
  18. const char * SCI_METHOD DescribeWordListSets();
  19. void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess);
  20. void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess);
  21. };
  22. #ifdef SCI_NAMESPACE
  23. }
  24. #endif
  25. #endif