From 0ce3bc08df1a7de8eff1ec1d70ee3b713224407c Mon Sep 17 00:00:00 2001 From: Christian Grasser Date: Fri, 23 Sep 2022 14:22:41 +0200 Subject: [PATCH] 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 --- PowerEditor/src/ScintillaComponent/ScintillaEditView.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/ScintillaComponent/ScintillaEditView.h b/PowerEditor/src/ScintillaComponent/ScintillaEditView.h index fe38d1544..7f51077c1 100644 --- a/PowerEditor/src/ScintillaComponent/ScintillaEditView.h +++ b/PowerEditor/src/ScintillaComponent/ScintillaEditView.h @@ -272,7 +272,7 @@ public: }; Sci_CharacterRange getSelection() const { - Sci_CharacterRange crange; + Sci_CharacterRange crange{}; crange.cpMin = static_cast(execute(SCI_GETSELECTIONSTART)); crange.cpMax = static_cast(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("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?!.’+-*&|=_~")); + execute(SCI_SETWORDCHARS, 0, reinterpret_cast("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?!.'+-*&|=_~")); }; void setRegistryLexer() {