mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-31 01:34:58 +02:00
Release 5.5.1 ( https://www.scintilla.org/scintilla551.zip ) Released 22 July 2024. SCI_CUTALLOWLINE added which is similar to SCI_COPYALLOWLINE but also deletes the copied text. Feature #1518. Can set font used for autocompletion lists with SCI_AUTOCSETSTYLE. Feature #1523. Increase maximum zoom set interactively to +60 points. Feature #1517. Fix flickering cursor after some mouse action sequences. Bug #2443. Release 5.3.3 ( https://www.scintilla.org/lexilla533.zip ) Released 22 July 2024. ASP: Control whether ASP is enabled for XML and HTML with lexer.xml.allow.asp and lexer.html.allow.asp. Issue #252. JavaScript: Recognize regular expressions at start or after '>' in JavaScript when lexer is cpp, hypertext, or xml. Issue #250, Bug #918. JavaScript: Recognize initial #! 'shebang' line as a comment in standalone files. Issue #253. Lua: Fix non-ASCII identifiers joined with '.' or ':'. Issue #242. Lua: Fix folding for multi-line SCE_LUA_LITERALSTRING and SCE_LUA_COMMENT when performed incrementally. Issue #247. PHP: Control whether PHP is enabled for XML and HTML with lexer.xml.allow.php and lexer.html.allow.php. Issue #252. Close #15466
30 lines
947 B
C++
30 lines
947 B
C++
// Scintilla source code edit control
|
|
/** @file LexerSimple.h
|
|
** A simple lexer with no state.
|
|
**/
|
|
// Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
|
|
// The License.txt file describes the conditions under which this software may be distributed.
|
|
|
|
#ifndef LEXERSIMPLE_H
|
|
#define LEXERSIMPLE_H
|
|
|
|
namespace Lexilla {
|
|
|
|
// A simple lexer with no state
|
|
class LexerSimple : public LexerBase {
|
|
const LexerModule *lexerModule;
|
|
std::string wordLists;
|
|
public:
|
|
explicit LexerSimple(const LexerModule *lexerModule_);
|
|
const char * SCI_METHOD DescribeWordListSets() override;
|
|
void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, Scintilla::IDocument *pAccess) override;
|
|
void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, Scintilla::IDocument *pAccess) override;
|
|
// ILexer5 methods
|
|
const char * SCI_METHOD GetName() override;
|
|
int SCI_METHOD GetIdentifier() override;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|