From fdc46e5d4307ef7481cffbe4f7aa895218e14227 Mon Sep 17 00:00:00 2001 From: Kein-Hong Man Date: Fri, 11 Dec 2015 13:05:50 +1100 Subject: Bug [#1790]. Include '&' and '|' bitwise operators for Lua 5.3. --- doc/ScintillaHistory.html | 4 ++++ lexers/LexLua.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 955c79674..03d41a19a 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -508,6 +508,10 @@ Bug #1789.
  • + Lua lexer includes '&' and '|' bitwise operators for Lua 5.3. + Bug #1790. +
  • +
  • Send SCN_UPDATEUI with SC_UPDATE_SELECTION when the application changes multiple selection.
  • diff --git a/lexers/LexLua.cxx b/lexers/LexLua.cxx index b62e69a35..1e115ad18 100644 --- a/lexers/LexLua.cxx +++ b/lexers/LexLua.cxx @@ -64,7 +64,7 @@ static void ColouriseLuaDoc( // but probably enough in most cases. [pP] is for hex floats. CharacterSet setNumber(CharacterSet::setDigits, ".-+abcdefpABCDEFP"); CharacterSet setExponent(CharacterSet::setNone, "eEpP"); - CharacterSet setLuaOperator(CharacterSet::setNone, "*/-+()={}~[];<>,.^%:#"); + CharacterSet setLuaOperator(CharacterSet::setNone, "*/-+()={}~[];<>,.^%:#&|"); CharacterSet setEscapeSkip(CharacterSet::setNone, "\"'\\"); Sci_Position currentLine = styler.GetLine(startPos); -- cgit v1.2.3