aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKein-Hong Man <unknown>2015-12-11 13:05:50 +1100
committerKein-Hong Man <unknown>2015-12-11 13:05:50 +1100
commit0627da25d7c63fe93aba23ad784ddaaa225297a2 (patch)
treec354692ca7f18cfc8a502ca59ae19d95b5e78a5b
parent877e3554fd464932d5d641fbee9e45d38d1122b1 (diff)
downloadscintilla-mirror-0627da25d7c63fe93aba23ad784ddaaa225297a2.tar.gz
Bug [#1790]. Include '&' and '|' bitwise operators for Lua 5.3.
-rw-r--r--doc/ScintillaHistory.html4
-rw-r--r--lexers/LexLua.cxx2
2 files changed, 5 insertions, 1 deletions
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 @@
<a href="http://sourceforge.net/p/scintilla/bugs/1789/">Bug #1789</a>.
</li>
<li>
+ Lua lexer includes '&amp;' and '|' bitwise operators for Lua 5.3.
+ <a href="http://sourceforge.net/p/scintilla/bugs/1790/">Bug #1790</a>.
+ </li>
+ <li>
Send SCN_UPDATEUI with SC_UPDATE_SELECTION when the application changes multiple
selection.
</li>
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);