From 205ee4c3d4ddf2b8c5e4debbf3cab246fdb5157b Mon Sep 17 00:00:00 2001 From: "METANEOCORTEX\\Kotti" Date: Sat, 30 Nov 2024 11:33:15 +0100 Subject: [PATCH] Update Lexilla to v5.4.1, replace Zufiliu's Dart lexer by new Lexilla's Dart lexer (based on Zufuliu's Dart lexer) --- lexilla/Lexilla.vcxproj | 2 +- lexilla/Lexilla.vcxproj.filters | 6 +- lexilla/cppcheck.suppress | 12 +- lexilla/doc/Lexilla.html | 10 +- lexilla/doc/LexillaDownload.html | 10 +- lexilla/doc/LexillaHistory.html | 85 +- lexilla/examples/SimpleLexer/SimpleLexer.cxx | 1 + lexilla/include/LexicalStyles.iface | 91 +- lexilla/include/SciLexer.h | 81 ++ lexilla/lexers/LexCPP.cxx | 2 +- lexilla/lexers/LexHTML.cxx | 280 ++++--- lexilla/lexers/LexRust.cxx | 126 +-- lexilla/lexers/LexTOML.cxx | 5 +- lexilla/lexers/LexVB.cxx | 3 + lexilla/lexers_x/LexDart.cxx | 777 ------------------ lexilla/lexers_x/SciX.iface | 37 +- lexilla/lexers_x/SciXLexer.h | 39 +- lexilla/lexlib/CharacterCategory.cxx | 6 +- lexilla/lexlib/LexAccessor.cxx | 13 +- lexilla/lexlib/LexAccessor.h | 8 +- lexilla/lexlib/StyleContext.cxx | 6 +- lexilla/lexlib/StyleContext.h | 8 +- lexilla/src/Lexilla/Info.plist | 2 +- .../Lexilla/Lexilla.xcodeproj/project.pbxproj | 54 +- lexilla/src/LexillaVersion.rc | 4 +- lexilla/src/deps.mak | 34 +- lexilla/src/lexilla.mak | 2 +- lexilla/src/nmdeps.mak | 34 +- lexilla/version.txt | 2 +- src/StyleLexers/styleLexDart.c | 15 +- src/Version.h | 6 +- 31 files changed, 600 insertions(+), 1161 deletions(-) delete mode 100644 lexilla/lexers_x/LexDart.cxx diff --git a/lexilla/Lexilla.vcxproj b/lexilla/Lexilla.vcxproj index f841a8bbd..b2ad74892 100644 --- a/lexilla/Lexilla.vcxproj +++ b/lexilla/Lexilla.vcxproj @@ -55,6 +55,7 @@ + @@ -86,7 +87,6 @@ - diff --git a/lexilla/Lexilla.vcxproj.filters b/lexilla/Lexilla.vcxproj.filters index a5b6e8d98..6a84e39ec 100644 --- a/lexilla/Lexilla.vcxproj.filters +++ b/lexilla/Lexilla.vcxproj.filters @@ -206,9 +206,6 @@ lexers_x - - lexers_x - lexers_x @@ -278,6 +275,9 @@ lexers + + lexers + diff --git a/lexilla/cppcheck.suppress b/lexilla/cppcheck.suppress index b373d3249..52ce92181 100644 --- a/lexilla/cppcheck.suppress +++ b/lexilla/cppcheck.suppress @@ -1,6 +1,12 @@ // File to suppress cppcheck warnings for files that will not be fixed. // Does not suppress warnings where an additional occurrence of the warning may be of interest. -// Configured for cppcheck 2.12 +// Configured for cppcheck 2.15 + +// Just a report of how many checkers are run +checkersReport + +// This just warns that cppcheck isn't exhaustive and it still appears in exhaustive mode +normalCheckLevelMaxBranches // Coding style is to use assignments in constructor when there are many // members to initialize or the initialization is complex or has comments. @@ -28,9 +34,6 @@ missingIncludeSystem danglingTemporaryLifetime:lexilla/access/LexillaAccess.cxx returnDanglingLifetime:lexilla/access/LexillaAccess.cxx -// cppcheck seems to believe that unique_ptr::get returns void* instead of char** -arithOperationsOnVoidPointer:lexilla/lexlib/WordList.cxx - // cppcheck 2.11 limits checking of complex functions unless --check-level=exhaustive but that // only finds one false issue in LexRuby checkLevelNormal:lexilla/lexers/LexBash.cxx @@ -73,6 +76,7 @@ variableScope:lexilla/lexers/LexCSS.cxx knownConditionTrueFalse:lexilla/lexers/LexDataflex.cxx constParameterReference:lexilla/lexers/LexDataflex.cxx variableScope:lexilla/lexers/LexDataflex.cxx +constParameterReference:lexilla/lexers/LexDart.cxx knownConditionTrueFalse:lexilla/lexers/LexECL.cxx variableScope:lexilla/lexers/LexECL.cxx constParameter:lexilla/lexers/LexEDIFACT.cxx diff --git a/lexilla/doc/Lexilla.html b/lexilla/doc/Lexilla.html index d2d2a0ff9..00cda3903 100644 --- a/lexilla/doc/Lexilla.html +++ b/lexilla/doc/Lexilla.html @@ -9,7 +9,7 @@ - +