mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-08-29 13:48:31 +02:00
Release 5.5.7 (https://www.scintilla.org/scintilla557.zip) Released 8 June 2025 1. Add SCI_SCROLLVERTICAL method to restore view position and maintain it while performing line wrapping. 2. Add SC_UNDO_SELECTION_HISTORY_SCROLL flag to SCI_SETUNDOSELECTIONHISTORY which controls whether undo and redo restore vertical scroll position. 3. Tweak SC_MARK_BAR to be slightly wider by using next higher whole pixel instead of next lower for margin width / 3. 4. Scale images in autocompletion lists with SCI_AUTOCSETIMAGESCALE to match high DPI screens. Initially only on GTK and Qt. 5. Fix wrapping bug for UTF-8 where \r\n could wrap between the characters. Notepad++ Pull Request #16373. 6. Fix crash during painting when scroll bars changed. Bug #2481. 7. On GTK, reset vertical scroll bar synchronously in SCI_SETDOCPOINTER to fix bug where scroll position not restored in non-wrap mode. Bug #2416. 8. On GTK, fix IME problem when tentative composition interfered with delete surrounding. Feature #1476. 9. On GTK, update IME cursor position inside retrieve surrounding to better position candidate window. Feature #1488. Release 5.4.5 (https://www.scintilla.org/lexilla545.zip) Released 8 June 2025 1. Dart: Add error state SCE_DART_STRINGEOL for unterminated string. Pull request #315. 2. Makefile: Add a keyword list to makefile lexer to highlight GNU Make directives like 'ifdef' and 'vpath' as SCE_MAKE_PREPROCESSOR since these are similar to NMAKE directives like '!IFDEF'. 3. Nix: Add error state SCE_NIX_STRINGEOL for unterminated string. Pull request #315. 4. TOML: Add error state SCE_TOML_STRINGEOL for unterminated string. Pull request #315. 5. Zig: Add error state SCE_ZIG_STRINGEOL for unterminated string. Pull request #315. Close #16649
59 lines
2.6 KiB
C++
59 lines
2.6 KiB
C++
// Scintilla source code edit control
|
|
/** @file DefaultLexer.h
|
|
** A lexer base class with default empty implementations of methods.
|
|
** For lexers that do not support all features so do not need real implementations.
|
|
** Does have real implementation for style metadata.
|
|
**/
|
|
// Copyright 2017 by Neil Hodgson <neilh@scintilla.org>
|
|
// The License.txt file describes the conditions under which this software may be distributed.
|
|
|
|
#ifndef DEFAULTLEXER_H
|
|
#define DEFAULTLEXER_H
|
|
|
|
namespace Lexilla {
|
|
|
|
// A simple lexer with no state
|
|
class DefaultLexer : public Scintilla::ILexer5 {
|
|
const char *languageName;
|
|
int language;
|
|
const LexicalClass *lexClasses;
|
|
size_t nClasses;
|
|
public:
|
|
DefaultLexer(const char *languageName_, int language_,
|
|
const LexicalClass *lexClasses_ = nullptr, size_t nClasses_ = 0);
|
|
virtual ~DefaultLexer();
|
|
void SCI_METHOD Release() override;
|
|
int SCI_METHOD Version() const override;
|
|
const char * SCI_METHOD PropertyNames() override;
|
|
int SCI_METHOD PropertyType(const char *name) override;
|
|
const char * SCI_METHOD DescribeProperty(const char *name) override;
|
|
Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) override;
|
|
const char * SCI_METHOD DescribeWordListSets() override;
|
|
Sci_Position SCI_METHOD WordListSet(int n, const char *wl) override;
|
|
void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, Scintilla::IDocument *pAccess) override = 0;
|
|
void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, Scintilla::IDocument *pAccess) override;
|
|
void * SCI_METHOD PrivateCall(int operation, void *pointer) override;
|
|
int SCI_METHOD LineEndTypesSupported() override;
|
|
int SCI_METHOD AllocateSubStyles(int styleBase, int numberStyles) override;
|
|
int SCI_METHOD SubStylesStart(int styleBase) override;
|
|
int SCI_METHOD SubStylesLength(int styleBase) override;
|
|
int SCI_METHOD StyleFromSubStyle(int subStyle) override;
|
|
int SCI_METHOD PrimaryStyleFromStyle(int style) override;
|
|
void SCI_METHOD FreeSubStyles() override;
|
|
void SCI_METHOD SetIdentifiers(int style, const char *identifiers) override;
|
|
int SCI_METHOD DistanceToSecondaryStyles() override;
|
|
const char * SCI_METHOD GetSubStyleBases() override;
|
|
int SCI_METHOD NamedStyles() override;
|
|
const char * SCI_METHOD NameOfStyle(int style) override;
|
|
const char * SCI_METHOD TagsOfStyle(int style) override;
|
|
const char * SCI_METHOD DescriptionOfStyle(int style) override;
|
|
// ILexer5 methods
|
|
const char * SCI_METHOD GetName() override;
|
|
int SCI_METHOD GetIdentifier() override;
|
|
const char *SCI_METHOD PropertyGet(const char *key) override;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|