Commit Graph

  • 1f1ecb12f8 LexAccessor.cxx now depends on Scintilla.h. master Neil Hodgson 2025-04-18 09:19:46 +10:00
  • 0c5d07e06b Coverity: protect against potential for negative indexing. Neil Hodgson 2025-04-07 17:01:14 +10:00
  • 6d51ba20fe Avoid Coverity should move warnings. Neil Hodgson 2025-04-07 17:00:24 +10:00
  • e69590bfba Use signed types to silence Coverity underflow warnings. Neil Hodgson 2025-04-07 16:59:40 +10:00
  • 4052be3f96 Rule-of-zero LexerPython to avoid warning. Neil Hodgson 2025-04-07 16:58:12 +10:00
  • 772d7c0d23 Add helper definitions for fold level to standardize fold level setting code. Neil Hodgson 2025-04-07 08:31:15 +10:00
  • 444bbe81e0 Eliminate signed type conversion warnings by using signed type Sci_Position in folder. Neil Hodgson 2025-04-07 07:30:57 +10:00
  • 6449227cfb Convert if ladder into switch for clarity. Standardize indentation and whitespace. Neil Hodgson 2025-04-07 07:22:22 +10:00
  • 3e11697c7a Simplify code and silence warnings. Neil Hodgson 2025-04-06 15:43:41 +10:00
  • d8dce459c9 Add tests for folding of asm. Neil Hodgson 2025-04-06 15:29:21 +10:00
  • f053a08a7a Remove a suppression that is not needed any more. Neil Hodgson 2025-04-05 15:25:23 +11:00
  • 5991c80d6c LexMake has more dependencies. Neil Hodgson 2025-04-05 15:24:36 +11:00
  • 65b14241d6 Add a keyword list to makefile lexer to highlight GNU Make directives like 'ifdef' and 'vpath' as SCE_MAKE_PREPROCESSOR since these are similar to NMAKE directives like '!IFDEF'. Neil Hodgson 2025-04-05 14:30:44 +11:00
  • 78b80c0e53 Replace string version of InList method with string_view version since it will work for string as well as string_view. Add tests. Neil Hodgson 2025-04-05 14:25:52 +11:00
  • 270863c7b0 Simplify assignment / target logic in makefile lexer. Neil Hodgson 2025-04-05 14:23:37 +11:00
  • 9b1b85f066 Simplify makefile lexer with string_view and new StartsWith function. Add more examples to test file. Neil Hodgson 2025-04-05 10:10:34 +11:00
  • fd53017b41 Remove else after return to avoid clang-tidy warning. Neil Hodgson 2025-04-05 09:34:07 +11:00
  • 2a21bc22db Make the makefile lexer an object lexer to provide more metadata and allow adding more features. Neil Hodgson 2025-04-05 08:25:04 +11:00
  • 2368a36459 Implement empty PropertyGet method on DefaultLexer so derived lexers without properties do not need to implement it. Neil Hodgson 2025-04-05 08:17:21 +11:00
  • eda969e330 Fix release comment. Neil Hodgson 2025-04-02 09:43:19 +11:00
  • da491bd9ce Fix history to allocate most recent change to 5.4.4. rel-5-4-4 Neil Hodgson 2025-03-30 09:19:32 +11:00
  • 6574cb3263 Updates for version 5.4.4. Neil Hodgson 2025-03-29 21:27:16 +11:00
  • 557811f4ce Add canonical self links to help Google crawler. Neil Hodgson 2025-03-24 12:12:54 +11:00
  • e2f90efc1f Avoid warning by replacing c++latest std flag with more specific c++20. Neil Hodgson 2025-03-24 09:20:04 +11:00
  • fa6629e739 #308 Move build clutter from src directory by defaulting DIR_O to src\obj. Ahmet Sait 2025-03-24 08:58:15 +11:00
  • e8a26430b3 #308 Add ARM64 as second build to win32 workflow. Since this is cross-compiling for ARM64, the tests can't run there so are omitted using the TEST environment variable. The CheckLexilla step can't run so is exceluded. An extra artifact lexilla-arm64.dll is uploaded although it should be renamed to lexilla.dll for use. zufuliu 2025-03-23 11:02:24 +11:00
  • 78ea4a5c9a Fix building for ARM64 on Win32. Ahmet Sait 2025-03-22 10:03:28 +11:00
  • 7335f7fcf2 Avoid some warnings. Neil Hodgson 2025-03-15 09:41:46 +11:00
  • 06da12b0b3 Silence warnings by initializing and removing unnecessary else. Neil Hodgson 2025-03-02 08:24:18 +11:00
  • 361b5e8744 Update suppressions for Cppcheck 2.17. Add const in a some places where it is reasonable. Neil Hodgson 2025-03-01 16:26:44 +11:00
  • f46e2531c7 Updates for version 5.4.3. rel-5-4-3 Neil Hodgson 2025-02-22 13:32:23 +11:00
  • 56dcfd3a6f #304 Fix single character argument to StyleContext::MatchIgnoreCase. HoTschir 2025-02-07 14:12:53 +11:00
  • 4f2ac48363 Add "Releases" anchor to navigate to Releases. https://sourceforge.net/p/scintilla/feature-requests/1543/ Neil Hodgson 2025-02-05 20:02:15 +11:00
  • df5fefeea8 #302 #294 LexPython: Improve detecting of attributes and decorators 1. Fix bug of identifier at start of file mis-styled as attribute by not checking for pos<0 2. Fix bug where period at end of comment can misidentify the next line as an attribute 3. Fix bug in not recognizing @decorator or @decorator.attribute when decorator is indented by checking if(!IsASpaceOrTab(attrCh)) 4. Add test cases for this group of bugs pryrt 2025-01-09 11:36:44 -08:00
  • 8c70bd6ee1 Update build dependencies for LexRuby. Neil Hodgson 2025-01-06 09:58:46 +11:00
  • cd45fddd0c #301 Avoid unnecessary styler.Flush();. zufuliu 2025-01-04 13:29:59 +08:00
  • 7b15e410b2 #298 Use an unnamed namespace to avoid potential conflicts. Remove static since no longer needed. Neil Hodgson 2025-01-05 09:30:30 +11:00
  • 511ccff6a6 Decrease warnings and flatten code where reasonable. Neil Hodgson 2025-01-03 09:59:47 +11:00
  • e40fe0b68c #300 Recognize name as SCE_RB_DEFNAME in def when :: used as well as .. Recognize substyles for subject of def. zufuliu 2025-01-03 08:42:59 +11:00
  • 752a9e9be1 #300 Simplify ClassifyWordRb. zufuliu 2025-01-03 08:15:48 +11:00
  • fc407d7f8d #300 Fix heredoc after substyled identifier. zufuliu 2025-01-02 17:53:36 +11:00
  • 88f5fc4c77 Use const and constexpr to decrease warnings. Neil Hodgson 2025-01-01 08:53:54 +11:00
  • 19f09c00c7 #299 Fix evaluation of != in preprocessor condition. HoTschir 2025-01-01 08:47:54 +11:00
  • 0d32d542d3 Add 'else' to keyword list as it is syntactically significant. Neil Hodgson 2024-12-31 10:07:41 +11:00
  • fc1634f323 Replace fixed length string with std::string to avoid potential truncation and simplify code. Avoids warnings for dangerous strcpy. Neil Hodgson 2024-12-31 10:01:59 +11:00
  • 42b92fa370 Implement substyles for identifiers in Ruby SCE_RB_IDENTIFIER. Neil Hodgson 2024-12-30 21:07:01 +11:00
  • 9c4b392ae5 To allow styles over 0x7F, replace StyleAt with StyleIndexAt. Remove actual_style as it is no longer useful and could cause problems with larger style numbers. Neil Hodgson 2024-12-30 20:59:13 +11:00
  • cf4ad91e13 Ensure variables are initialized. Remove inline as it is ignored. Use const. Neil Hodgson 2024-12-30 08:07:39 +11:00
  • d872133acc Fix spelling, hyphenate / dehyphenate some compound words, expand abbreviations. Neil Hodgson 2024-12-29 21:25:57 +11:00
  • 2b51b3906b Make the ruby lexer an object lexer to provide more metadata and allow adding more features. Neil Hodgson 2024-12-29 16:51:52 +11:00
  • 7b0a1d7609 #297 Allow uppercase Modula identifiers to contain digits. Robert Di Pardo 2024-12-21 13:25:48 +11:00
  • d0ef4d2de8 #295 Remove variable that is not needed. zufuliu 2024-12-21 12:01:25 +11:00
  • 870a8cae89 #295 Fix asm style extending past end. Add test files for Pascal from HoTschir. zufuliu 2024-12-21 08:38:42 +11:00
  • 88460981e1 Update suppressions for Cppcheck 2.16. Neil Hodgson 2024-12-20 13:21:34 +11:00
  • 3ab75de66d #295 Examples of Pascal *.pas should be treated as text files. Neil Hodgson 2024-12-20 13:18:46 +11:00
  • 28ade997ec Updates for version 5.4.2. rel-5-4-2 Neil Hodgson 2024-12-15 20:36:32 +11:00
  • 5ce0be5ccb #289 Use correct SCE_HJ_SYMBOLS style for '.' after regex instead of SCE_HJ_WORD. Prevent empty word assertion when non-word character after regex flag. zufuliu 2024-12-13 15:47:44 +11:00
  • cf1070c1cc #292 Define some variables constant. Ekopalypse 2024-11-30 12:01:59 +11:00
  • 8767cc93e9 #292, #268 Add C string and raw C string literal styles SCE_RUST_CSTRING and SCE_RUST_CSTRINGR. Ekopalypse 2024-11-30 11:55:47 +11:00
  • 32b2065c72 Show clone command as code. Neil Hodgson 2024-11-29 08:13:17 +11:00
  • 8a6e5e741f #288 Fix unstable lexing with substyled keyword and unterminated string. Merge backtracking loops and only check line end styles - don't exit from backtracking when non-string state found. Respect isPHPScript if backtracking reaches start. Remove redundant styler.StartAt(startPos); zufuliu 2024-11-23 12:19:03 +11:00
  • 942ac3fed7 #287 Add SCE_ZIG_IDENTIFIER_STRING for identifiers expressed as strings. Jiří Techet 2024-11-05 08:08:50 +11:00
  • 0882e4276c Rename SCE_COBOL_UUID to SCE_COBOL_WORD3 as it does not refer to UUIDs, just the 3rd set of keywords or known identifiers. The value remains the same, 8. Related to #284. Neil Hodgson 2024-10-27 22:13:11 +11:00
  • 50373fa734 Define distinct style constants for COBOL SCE_COBOL_* replacing the COBOL lexers reuse of the SCE_C_* constants defined for the cpp lexer. The values are the same to provide binary compatibility. Related to #284. Neil Hodgson 2024-10-27 22:10:32 +11:00
  • 464cb58e66 Minor clean-ups preparatory to defining distinct style constants for COBOL. Include C++ headers, use unnamed namespace instead of static, remove inline, use nullptr. Related to #284. Neil Hodgson 2024-10-27 17:19:00 +11:00
  • 3877d63661 #282 Add Nix lexer. Jiří Techet 2024-10-27 07:55:17 +11:00
  • f6f5d61431 Nix examples *.nix should be treated as text files. Neil Hodgson 2024-10-27 07:53:02 +11:00
  • 9a1ca7735b #283 Don't treat keys without values as errors. Jiří Techet 2024-10-26 10:44:16 +11:00
  • ba6023f9aa #285 Update to Unicode 15.1. Neil Hodgson 2024-10-24 07:56:57 +11:00
  • ab42c6dcba #286 Use correct SCE_HJA_TEMPLATELITERAL style for server-side template literals in HTML instead of client-side style. Neil Hodgson 2024-10-23 08:46:13 +11:00
  • cc50c7d961 Update download size. Neil Hodgson 2024-10-21 09:38:41 +11:00
  • 1498fb2543 Change release date. rel-5-4-1 Neil Hodgson 2024-10-19 22:08:24 +11:00
  • 5bd3f0fa39 Fix crash for empty documentation comment keyword where '&lt;' occurs at line end. Neil Hodgson 2024-10-18 09:25:41 +11:00
  • 0784d05075 Updates for version 5.4.1. Neil Hodgson 2024-10-14 08:41:14 +11:00
  • 3a78ad76e6 #280 Basic support for template literals. zufuliu 2024-10-11 11:57:56 +11:00
  • 910b2cea7b #269 Simplify detection of PHP start. zufuliu 2024-10-08 10:33:26 +11:00
  • 64747fd067 #269 Highlight PHP short echo tag <?= as whole instead of <? + operator. Avoid changing scriptLanguage and beforeLanguage when <?xml does not start XML. Avoid repeated operations. zufuliu 2024-09-26 21:24:16 +10:00
  • fe0ff5553e #269 Include all PHP styles in ScriptOfState. zufuliu 2024-09-26 21:22:20 +10:00
  • 4d143cbc2d Update suppressions for Cppcheck 2.15 Neil Hodgson 2024-09-24 11:53:37 +10:00
  • cd434bef6c #272 Simplify code to start SGML. zufuliu 2024-09-24 08:35:23 +10:00
  • 0bce5b711a #272 Revert unintended change. zufuliu 2024-09-24 08:34:28 +10:00
  • fe4bb1920c #272 Fix line ends to work on Unix. Neil Hodgson 2024-09-23 10:48:39 +10:00
  • 7a2b32dcd5 Treat XML files as text. Neil Hodgson 2024-09-23 10:44:03 +10:00
  • 0c8d0b0cc2 #272 Improve SGML/DTD lexing. Don't terminate SGML when > inside quoted string. Lex both [ and ] as SCE_H_SGML_DEFAULT. Nested sections handled instead of switching to SCE_H_SGML_ERROR. zufuliu 2024-09-23 10:40:04 +10:00
  • efaa119a3a Remove workaround for runtime failures with Xcode 15 that added -ld_classic link flag. Neil Hodgson 2024-09-18 20:32:36 +10:00
  • 68e8bfef5e Moved new lexers to start of release section. Neil Hodgson 2024-09-18 20:13:25 +10:00
  • ff40f9889d #277 Fix per-line folding in F# documents Robert Di Pardo 2024-09-14 13:03:36 -04:00
  • 37b834b32f #276 Include EOLs in the style range of SCE_FSHARP_COMMENTLINE Robert Di Pardo 2024-09-14 10:26:00 -04:00
  • 7da58b3532 #267 Backport Zig lexer from Notepad4 Jiří Techet 2024-09-15 08:27:36 +10:00
  • 5cfd04a7f7 #275 Backtrack to the beginning of multiline strings/comments for folding Jiří Techet 2024-09-13 17:52:53 +02:00
  • 3ace72f009 TestLexers failed to find per-line folding bugs because it reused the document and lexer object from successful whole document fold for the per-line fold. Fixed by creating a new document and lexer for the per-line lexing and folding. This showed there are problems with the current Dart, F#, and Julia folders as well as the new Zig lexer in #267. Neil Hodgson 2024-09-13 21:21:38 +10:00
  • e0f045a027 Update make dependencies for Dart lexer changes. Neil Hodgson 2024-09-12 19:34:00 +10:00
  • 75ae9070e9 @270 Convert the Dart lexer to object lexer. Jiří Techet 2024-09-12 18:27:08 +10:00
  • 67a554d340 Add basic SGML DTD keywords. zufuliu 2024-09-12 08:56:15 +10:00
  • fd18639c07 #274 A decimal separator is not required for scaled decimal numbers nor numbers specifying an exponent. Henrik S. Johansen 2024-09-11 13:35:42 +10:00
  • 01b4ce6a0e Test case for Smalltalk lexer. Neil Hodgson 2024-09-11 13:13:30 +10:00
  • fac2c4accc Examples of Smalltalk *.st should be treated as text files. Neil Hodgson 2024-09-11 12:39:16 +10:00
  • 519f761f84 #273 Fix JavaScript /*/ to be a comment start, not a 3 character comment. zufuliu 2024-09-10 22:11:12 +10:00
  • 9489ea5b60 #273 Treat regular expressions in JavaScript as a string state by not allowing transition to XML processing instruction SCE_H_XMLSTART or SGML command SCE_H_SGML_COMMAND. Remove SCE_HJ_REGEX from folding code where now handled as string state, zufuliu 2024-09-10 22:02:46 +10:00
  • 4a84659388 #273 Treat doc comments in JavaScript the same as comments by not allowing transition to XML processing instruction SCE_H_XMLSTART or SGML command SCE_H_SGML_COMMAND. zufuliu 2024-09-10 21:52:38 +10:00