Skip to content

Commit

Permalink
Scintilla 5.5.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Dec 22, 2024
1 parent f3c6c01 commit 646d77c
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 9 deletions.
18 changes: 18 additions & 0 deletions scintilla/include/boost/regex/v5/win_regex_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <boost/regex/v5/primary_transform.hpp>
#include <memory>
#include <map>
#include "VectorISA.h"

namespace boost{

Expand Down Expand Up @@ -36,6 +37,23 @@ class w32_regex_traits<wchar_t>
for (int i = 0; i < characterCount; i++) {
m_lower_map[i] = static_cast<wchar_t>(i);
}
#elif NP2_USE_SSE2
{
__m128i *ptr = reinterpret_cast<__m128i *>(m_lower_map.get());
__m128i value = _mm_setr_epi16(0, 1, 2, 3, 4, 5, 6, 7);
const __m128i acc = _mm_shuffle_epi32(_mm_cvtsi32_si128(0x0008'0008), 0);
constexpr int count = characterCount / (sizeof(__m128i) / sizeof(wchar_t));
#if defined(__clang__)
#pragma clang loop unroll(disable)
#elif defined(__GNUC__)
#pragma GCC unroll 0
#endif
for (int i = 0; i < count; i++) {
_mm_storeu_si128(ptr, value);
ptr++;
value = _mm_add_epi16(value, acc);
}
}
#elif defined(_WIN64)
{
uint64_t *ptr = reinterpret_cast<uint64_t *>(m_lower_map.get());
Expand Down
1 change: 1 addition & 0 deletions scintilla/lexers/LexCSV.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ namespace {
// https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.html

enum {
// see Styles.cpp
CsvOption_BackslashEscape = 1 << 15,
CsvOption_MergeDelimiter = 1 << 16,
CsvRowGroup = 100,
Expand Down
2 changes: 1 addition & 1 deletion scintilla/lexers/LexTOML.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ constexpr bool IsTOMLUnquotedKey(int ch) noexcept {
return IsIdentifierChar(ch) || ch == '-';
}

bool IsTOMLKey(StyleContext& sc, int braceCount, const WordList *kwList) {
bool IsTOMLKey(StyleContext &sc, int braceCount, const WordList *kwList) {
if (braceCount) {
const int chNext = sc.GetLineNextChar();
if (chNext == '=' || chNext == '.' || chNext == '-') {
Expand Down
2 changes: 1 addition & 1 deletion scintilla/lexers/LexYAML.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ constexpr bool IsYAMLAnchorChar(int ch) noexcept {
return IsGraphic(ch) && !IsYAMLFlowIndicator(ch);
}

bool IsYAMLText(StyleContext& sc, int braceCount, const WordList *kwList) {
bool IsYAMLText(StyleContext &sc, int braceCount, const WordList *kwList) {
const int state = sc.state;
const Sci_Position endPos = braceCount? sc.styler.Length() : sc.lineStartNext;
const unsigned char chNext = LexGetNextChar(sc.styler, sc.currentPos, endPos);
Expand Down
2 changes: 1 addition & 1 deletion src/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#define HELP_LINK_FEATURE_REQUEST L"https://github.com/zufuliu/notepad4/issues"
#define HELP_LINK_ONLINE_WIKI L"https://github.com/zufuliu/notepad4/wiki"

#define VERSION_BUILD_INFO_LIB L",\nScintilla 5.5.3."
#define VERSION_BUILD_INFO_LIB L",\nScintilla 5.5.4."
#define VERSION_BUILD_INFO_FORMAT L"Compiled on " __DATE__ L" with %s %d.%d.%d" VERSION_BUILD_INFO_LIB
#if defined(__INTEL_LLVM_COMPILER)
#define VERSION_BUILD_TOOL_NAME L"Intel oneAPI"
Expand Down
12 changes: 6 additions & 6 deletions version.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ git clone https://github.com/XhmikosR/notepad2-mod.git

Scintilla (upstream)
hg clone http://hg.code.sf.net/p/scintilla/code scintilla
5.5.3
2024-12-06 9617:7f805fc34a65
5.5.4
2024-12-18 9624:7d3da0a013fb

Lexilla (upstream)
git clone https://github.com/ScintillaOrg/lexilla.git
5.4.1
2024-11-30 cf1070c1cc921a7ca77d806b47c39ed0b57cdd94
5.4.2
2024-12-21 7b0a1d7609bd0c2d07da61e3da41dae9077ec8ee

SciTE (upstream)
hg clone http://hg.code.sf.net/p/scintilla/scite
5.5.3
2024-11-26 6361:42e286d36ce6
5.5.4
2024-12-18 6365:e4c786064e6f

Boost regex 7.0.1
1.86 https://github.com/boostorg/regex
Expand Down

0 comments on commit 646d77c

Please sign in to comment.