Fix rebol syntax quote issue

see http://www.rebol.com/r3/docs/guide/code-syntax.html#section-3
setREBOLLexer seems to use wrong, non ASCII single quote, see also https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/lexilla/lexers/LexRebol.cxx#L38
found by clang tidy warning

Close #12221
This commit is contained in:
Christian Grasser 2022-09-23 14:22:41 +02:00 committed by Don Ho
parent 18971709f5
commit 0ce3bc08df
1 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@ public:
};
Sci_CharacterRange getSelection() const {
Sci_CharacterRange crange;
Sci_CharacterRange crange{};
crange.cpMin = static_cast<Sci_PositionCR>(execute(SCI_GETSELECTIONSTART));
crange.cpMax = static_cast<Sci_PositionCR>(execute(SCI_GETSELECTIONEND));
return crange;
@ -917,7 +917,7 @@ protected:
void setREBOLLexer() {
setLexer(L_REBOL, LIST_0 | LIST_1 | LIST_2 | LIST_3 | LIST_4 | LIST_5 | LIST_6);
execute(SCI_SETWORDCHARS, 0, reinterpret_cast<LPARAM>("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?!.+-*&|=_~"));
execute(SCI_SETWORDCHARS, 0, reinterpret_cast<LPARAM>("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?!.'+-*&|=_~"));
};
void setRegistryLexer() {