From 33425dc5b7862b88cfdf64555cc16b3f1e227719 Mon Sep 17 00:00:00 2001
From: Sven Strickroth
Date: Fri, 30 Nov 2012 20:56:00 +0100
Subject: [PATCH] Upgraded to scintilla 3.2.3
Signed-off-by: Sven Strickroth
---
ext/build/ScintillaLexer.vcproj | 4 +
ext/scintilla/doc/ScintillaDoc.html | 35 +++++-
ext/scintilla/doc/ScintillaDownload.html | 10 +-
ext/scintilla/doc/ScintillaHistory.html | 199 +++++++++++++++++++++++++++++++
ext/scintilla/doc/ScintillaRelated.html | 4 +
ext/scintilla/doc/index.html | 10 +-
ext/scintilla/include/Platform.h | 5 +
ext/scintilla/include/SciLexer.h | 7 ++
ext/scintilla/include/Scintilla.h | 8 +-
ext/scintilla/include/Scintilla.iface | 21 ++++
ext/scintilla/include/ScintillaWidget.h | 4 +-
ext/scintilla/lexers/LexBash.cxx | 156 ++++++++++++++++++++++--
ext/scintilla/lexers/LexCPP.cxx | 15 ++-
ext/scintilla/lexers/LexHTML.cxx | 2 +-
ext/scintilla/lexers/LexLua.cxx | 2 +-
ext/scintilla/lexers/LexOthers.cxx | 93 ++-------------
ext/scintilla/lexers/LexPO.cxx | 149 +++++++++++++++++++++++
ext/scintilla/lexers/LexRuby.cxx | 14 ++-
ext/scintilla/lexers/LexSQL.cxx | 33 +++--
ext/scintilla/lexers/LexYAML.cxx | 2 +-
ext/scintilla/src/AutoComplete.cxx | 4 +-
ext/scintilla/src/AutoComplete.h | 2 +
ext/scintilla/src/CallTip.cxx | 18 +--
ext/scintilla/src/CallTip.h | 5 +
ext/scintilla/src/Catalogue.cxx | 2 +-
ext/scintilla/src/Document.cxx | 24 +++-
ext/scintilla/src/Document.h | 6 +-
ext/scintilla/src/Editor.cxx | 106 +++++++++-------
ext/scintilla/src/Editor.h | 6 +-
ext/scintilla/src/Indicator.cxx | 51 ++++++--
ext/scintilla/src/LineMarker.cxx | 12 +-
ext/scintilla/src/LineMarker.h | 2 +-
ext/scintilla/src/RESearch.cxx | 2 +-
ext/scintilla/src/RunStyles.cxx | 1 +
ext/scintilla/src/ScintillaBase.cxx | 4 +-
ext/scintilla/src/XPM.cxx | 13 +-
ext/scintilla/src/XPM.h | 6 +-
ext/scintilla/version.txt | 2 +-
ext/scintilla/win32/CheckD2D.cxx | 3 +
ext/scintilla/win32/PlatWin.cxx | 129 +++++++++++---------
ext/scintilla/win32/ScintRes.rc | 4 +-
ext/scintilla/win32/ScintillaWin.cxx | 63 +++++-----
ext/scintilla/win32/scintilla.mak | 11 +-
ext/scintilla/win32/scintilla_vc6.mak | 3 +
44 files changed, 931 insertions(+), 321 deletions(-)
create mode 100644 ext/scintilla/lexers/LexPO.cxx
create mode 100644 ext/scintilla/win32/CheckD2D.cxx
diff --git a/ext/build/ScintillaLexer.vcproj b/ext/build/ScintillaLexer.vcproj
index 43e23ee07..57279cd63 100644
--- a/ext/build/ScintillaLexer.vcproj
+++ b/ext/build/ScintillaLexer.vcproj
@@ -839,6 +839,10 @@
>
+
+
diff --git a/ext/scintilla/doc/ScintillaDoc.html b/ext/scintilla/doc/ScintillaDoc.html
index 619fb00b7..4eda3ca03 100644
--- a/ext/scintilla/doc/ScintillaDoc.html
+++ b/ext/scintilla/doc/ScintillaDoc.html
@@ -79,7 +79,7 @@
Scintilla Documentation
- Last edited 27/June/2012 NH
+ Last edited 21/July/2012 NH
There is an overview of the internal design of
Scintilla.
@@ -911,8 +911,8 @@ struct Sci_TextToFind {
pasting from the clipboard into the document, and clearing the document.
SCI_CANPASTE
returns non-zero if the document isn't read-only and if the selection
doesn't contain protected text. If you need a "can copy" or "can cut", use
- SCI_GETSELECTIONSTART()-SCI_GETSELECTIONEND()
, which will be non-zero if you can
- copy or cut to the clipboard.
+ SCI_GETSELECTIONEMPTY()
, which will be zero if there are any non-empty
+ selection ranges implying that a copy or cut to the clipboard should work.
GTK+ does not really support SCI_CANPASTE
and always returns TRUE
unless the document is read-only.
@@ -1504,6 +1504,7 @@ struct Sci_TextToFind {
SCI_GETSELECTIONS
+ SCI_GETSELECTIONEMPTY
SCI_CLEARSELECTIONS
SCI_SETSELECTION(int caret, int anchor)
SCI_ADDSELECTION(int caret, int anchor)
@@ -1615,6 +1616,10 @@ struct Sci_TextToFind {
Return the number of selections currently active.
+ SCI_GETSELECTIONEMPTY
+ Return 1 if every selected range is empty else 0.
+
+
SCI_CLEARSELECTIONS
Set a single empty selection at 0 as the only selection.
@@ -3360,6 +3365,7 @@ struct Sci_TextToFind {
const char *xpm)
SCI_RGBAIMAGESETWIDTH(int width)
SCI_RGBAIMAGESETHEIGHT(int height)
+ SCI_RGBAIMAGESETSCALE(int scalePercent)
SCI_MARKERDEFINERGBAIMAGE(int markerNumber,
const char *pixels)
SCI_MARKERSYMBOLDEFINED(int markerNumber)
@@ -3549,12 +3555,16 @@ struct Sci_TextToFind {
SCI_RGBAIMAGESETWIDTH(int width)
SCI_RGBAIMAGESETHEIGHT(int height)
+ SCI_RGBAIMAGESETSCALE(int scalePercent)
SCI_MARKERDEFINERGBAIMAGE(int markerNumber, const char *pixels)
Markers can be set to translucent pixmaps with this message. The
RGBA format is used for the pixmap.
The width and height must previously been set with the SCI_RGBAIMAGESETWIDTH
and
- SCI_RGBAIMAGESETHEIGHT
messages.
- Pixmaps use the SC_MARK_RGBAIMAGE
marker symbol.
+ SCI_RGBAIMAGESETHEIGHT
messages.
+ A scale factor in percent may be set with SCI_RGBAIMAGESETSCALE
. This is useful on OS X with
+ a retina display where each display unit is 2 pixels: use a factor of 200 so that each image pixel is dsplayed using a screen pixel.
+ The default scale, 100, will stretch each image pixel to cover 4 screen pixels on a retina display.
+ Pixmaps use the SC_MARK_RGBAIMAGE
marker symbol.
SCI_MARKERSYMBOLDEFINED(int markerNumber)
Returns the symbol defined for a markerNumber with SCI_MARKERDEFINE
@@ -3801,6 +3811,17 @@ struct Sci_TextToFind {
Not available for OS X Carbon.
+
+ INDIC_SQUIGGLEPIXMAP |
+
+ 13 |
+
+ A version of INDIC_SQUIGGLE that draws using a pixmap instead of
+ as a series of line segments for performance.
+ Measured to be between 3 and 6 times faster than INDIC_SQUIGGLE on GTK+.
+ Apperance will not be as good as INDIC_SQUIGGLE on OS X in HiDPI mode. |
+
+
@@ -4397,6 +4418,10 @@ struct Sci_TextToFind {
SCI_VCHOMEWRAP |
SCI_VCHOMEWRAPEXTEND |
+
+ SCI_VCHOMEDISPLAY |
+
+ SCI_VCHOMEDISPLAYEXTEND |
diff --git a/ext/scintilla/doc/ScintillaDownload.html b/ext/scintilla/doc/ScintillaDownload.html
index ea8c56d9c..9b305fe3e 100644
--- a/ext/scintilla/doc/ScintillaDownload.html
+++ b/ext/scintilla/doc/ScintillaDownload.html
@@ -25,9 +25,9 @@
-
+
Windows
-
+
GTK+/Linux
|
@@ -41,7 +41,7 @@
containing very few restrictions.
- Release 3.2.1
+ Release 3.2.3
Source Code
@@ -49,8 +49,8 @@
The source code package contains all of the source code for Scintilla but no binary
executable code and is available in
- - zip format (1250K) commonly used on Windows
- - tgz format (1100K) commonly used on Linux and compatible operating systems
+ - zip format (1250K) commonly used on Windows
+ - tgz format (1100K) commonly used on Linux and compatible operating systems
Instructions for building on both Windows and Linux are included in the readme file.
diff --git a/ext/scintilla/doc/ScintillaHistory.html b/ext/scintilla/doc/ScintillaHistory.html
index d17c556d4..13f7fc7c9 100644
--- a/ext/scintilla/doc/ScintillaHistory.html
+++ b/ext/scintilla/doc/ScintillaHistory.html
@@ -409,6 +409,10 @@
Denis Shelomovskij |
darmar |
John Vella |
+ Chinh Nguyen |
+
+ Sakshi Verma |
+ Joel B. Mohler |
@@ -421,6 +425,201 @@
+
+ -
+ Released 21 October 2012.
+
+ -
+ Improve speed when performing multiple searches.
+
+ -
+ SciTE adds definition of PLAT_UNIX for both PLAT_GTK and PLAT_MAC to allow consolidation of
+ settings valid on all Unix variants.
+
+ -
+ Signal autoCompleteCancelled added on Qt.
+
+ -
+ Bash lexer supports nested delimiter pairs.
+ Feature #3569352.
+ Bug #1515556.
+ Bug #3008483.
+ Bug #3512208.
+ Bug #3515392.
+
+ -
+ For C/C++, recognize exponent in floating point hexadecimal literals.
+ Bug #3576454.
+
+ -
+ For C #include statements, do not treat // in the path as a comment.
+ Bug #3519260.
+
+ -
+ Lexer for GetText translations (PO) improved with additional styles and single instance limitation fixed.
+
+ -
+ Ruby for loop folding fixed.
+ Bug #3240902.
+ Bug #3567391.
+
+ -
+ Ruby recognition of here-doc after class or instance variable fixed.
+ Bug #3567809.
+
+ -
+ SQL folding of loop and case fixed.
+ Bug #3567905.
+
+ -
+ SQL folding of case with assignment fixed.
+ Bug #3571820.
+
+ -
+ Fix hang when removing all characters from indicator at end of document.
+
+ -
+ Fix failure of \xhh in regular expression search for values greater than 0x79.
+
+ -
+ On Cocoa on OS X 10.8, fix inverted drawing of find indicator.
+
+ -
+ On Cocoa, fix double drawing when horizontal scroll range small and user swipes horizontally.
+
+ -
+ On Cocoa, remove incorrect setting of save point when reading information through 'string' and 'selectedString'.
+
+ -
+ On Cocoa, fix incorrect memory managment of infoBar.
+
+ -
+ On GTK+ 3 Ubuntu, fix crash when drawing margin.
+
+ -
+ On ncurses, fix excessive spacing with italics line end.
+
+ -
+ On Windows, search for D2D1.DLL and DWRITE.DLL in system directory to avoid loading from earlier
+ in path where could be planted by malware.
+
+
+
+
+ -
+ Released 31 August 2012.
+
+ -
+ Retina display support for Cocoa. Text size fixed.
+ Scale factor for images implemented so they can be displayed in high definition.
+
+ -
+ Implement INDIC_SQUIGGLEPIXMAP as a faster version of INDIC_SQUIGGLE.
+ Avoid poor drawing at right of INDIC_SQUIGGLE.
+ Align INDIC_DOTBOX to pixel grid for full intensity.
+
+ -
+ Implement SCI_GETSELECTIONEMPTY API.
+ Bug #3543121.
+
+ -
+ Added SCI_VCHOMEDISPLAY and SCI_VCHOMEDISPLAYEXTEND key commands.
+ Feature #3561433.
+
+ -
+ Allow specifying SciTE Find in Files directory with find.in.directory property.
+ Feature #3558594.
+
+ -
+ Override SciTE global strip.trailing.spaces with strip.trailing.spaces by pattern files.
+ Feature #3556320.
+
+ -
+ Fix long XML script tag handling in XML lexer.
+ Bug #3534190.
+
+ -
+ Fix rectangular selection range after backspace.
+ Bug #3543097.
+
+ -
+ Send SCN_UPDATEUI with SC_UPDATE_SELECTION for backspace in virtual space.
+ Bug #3543121.
+
+ -
+ Avoid problems when calltip highlight range is negative.
+ Bug #3545938.
+
+ -
+ On Cocoa, fix image drawing code so that image is not accessed after being freed
+ and is drawn in the correct location.
+
+ -
+ On Cocoa, limit horizontal touch scrolling to existing established width.
+
+ -
+ On Cocoa, decrease sensitivity of pinch-zoom.
+
+ -
+ Fix Cocoa drawing where style changes were not immediately visible.
+
+ -
+ Fix Cocoa memory leak due to reference cycle.
+
+ -
+ Fix Cocoa bug where notifications were sent after Scintilla was freed.
+
+ -
+ SciTE on OS X user shortcuts treats "Ctrl+D" as equivalent to "Ctrl+d".
+
+ -
+ On Windows, saving SciTE's Lua startup script causes it to run.
+
+ -
+ Limit time allowed to highlight current word in SciTE to 0.25 seconds to remain responsive.
+
+ -
+ Fixed SciTE read-only mode to stick with buffer.
+
+ -
+ For SciTE on Windows, enable Ctrl+Z, Ctrl+X, and Ctrl+C (Undo, Cut, and Copy) in the
+ editable fields of find and replace strips
+
+ -
+ Remove limit on logical line length in SciTE .properties files.
+ Bug #3544312.
+
+ -
+ Improve performance of SciTE Save As command.
+
+ -
+ Fix SciTE crash with empty .properties files. Bug #3545938.
+ Bug #3555308.
+
+ -
+ Fix repeated letter in SciTE calltips.
+ Bug #3545938.
+
+ -
+ Refine build time checking for Direct2D and DirectWrite.
+
+ -
+ Avoid potential build problems on Windows with MultiMon.h by explicitly checking for multi-monitor APIs.
+
+ -
+ Automatically disable themed drawing in SciTE when building on Windows 2000.
+ Reenable building for Windows NT 4 on NT 4 .
+
+ -
+ Added ncurses platform definitions. Implementation is maintained separately as
+ Scinterm.
+
+
+
diff --git a/ext/scintilla/doc/ScintillaRelated.html b/ext/scintilla/doc/ScintillaRelated.html
index 13e724866..af7f59774 100644
--- a/ext/scintilla/doc/ScintillaRelated.html
+++ b/ext/scintilla/doc/ScintillaRelated.html
@@ -29,6 +29,10 @@
Ports and Bindings of Scintilla
+ Scinterm
+ is an implementation of Scintilla for the ncurses platform.
+
+
Scintilla.mcc
is a port to MorphOS.
diff --git a/ext/scintilla/doc/index.html b/ext/scintilla/doc/index.html
index 146e9061c..005e3ac27 100644
--- a/ext/scintilla/doc/index.html
+++ b/ext/scintilla/doc/index.html
@@ -9,7 +9,7 @@
-
+