Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2019-03-23 | Backport: Simplified preprocessor conditional styling code, renamed 'active' ↵ | Neil | 1 | -33/+63 | |
to 'inactive' as that is more correct, added comments and helper methods, removed lines that had no effect. Behaviour unaltered. Backport of changeset 7343:47c846cb9d17. | |||||
2019-03-23 | Backport: Fix warnings from MSVC Code Analysis. | Neil | 1 | -30/+37 | |
Backport of changeset 7328:521b1e23bfe2, but without C++17 std::size and `SymbolValue() = default` instead of `SymbolValue() noexcept = default`, since the latter causes a compile error. | |||||
2019-01-15 | Backport: Treat "#if(" as preprocessor directive "#if" followed by operator "(". | Neil | 1 | -1/+1 | |
Backport of changeset 7233:e08fe2381ca3. | |||||
2018-12-12 | Backport: Bug [#2069]. LexerCPP: modernize int to std::string conversion | Jannick | 1 | -3/+1 | |
* LexCPP.cxx (LexerCPP::EvaluateTokens): Use std::to_string to convert int to std::string. Backport of changeset 7185:bff457790150. | |||||
2018-12-12 | Backport: Bug [#2069]. LexCPP: fix bug in arithmetic calculation by adding ↵ | Jannick | 1 | -5/+9 | |
precedence levels The precedence for the implemented arithmetic operators +,-,%,*,/ is added, such that the calculations produce the correct results honoring the standard precedence levels. * Replace characterset setArithmeticOp by setAddOp and setMultOp. * Replace precedence precArithmetic by precMult and precAdd * (EvaluateTokens): Apply new precedences. This fixes the bug in the arithmetic calculation: // lines with 'false' should not be highlighted, // those with 'true' should be. #if 1 + 2 * 3 == 9 false #endif #if (1 + 2) * 3 == 9 true #endif #if 1 + 2 * 3 == 7 true #endif #if 1 == 5 % 2 true #endif #if 6 - 7 == -1 true #endif #if 25 / 5 * 5 == 25 true #endif #if 1 + 2 * 3 % 2 == 1 true #endif #if 1 + 2 * 3 % 2 == 2 + 1 false #endif Backport of changeset 7184:48861f53f719. | |||||
2018-12-04 | Backport: Bug [#2062]. Interpret continued preprocessor lines correctly by ↵ | Neil | 1 | -10/+20 | |
reading all of the logical line. Backport of changeset 7182:a40b6aac5b1f. | |||||
2018-09-24 | Backport: Bug [#2045]. LexCPP: Fix 'elif' token length | huki | 1 | -1/+1 | |
Backport of changeset 7094:fa4b41e8a452. | |||||
2018-09-18 | Backport: Guard against shifting by negative amount as that is undefined ↵ | Neil Hodgson | 1 | -1/+5 | |
behaviour. Backport of changeset 7090:041e498f21d3. | |||||
2018-06-04 | Backport: Use const and noexcept, initialize, avoid casts and improve ↵ | Neil | 1 | -29/+29 | |
variable name. Backport of changeset 7020:9e7cc77d3970. | |||||
2018-06-04 | Backport: Use lambda in preference to function object. | Neil | 1 | -10/+2 | |
Backport of changeset 7019:6023ccf7f06c. | |||||
2018-04-14 | Backport: Undo some changes that snuck in the last change set. | Neil | 1 | -7/+7 | |
Backport of changeset 6688:281d0952d89b. | |||||
2018-05-05 | Backport: Make some changes recommended by clang-tidy. | mitchell | 1 | -9/+10 | |
Backport of changeset 6687:4cbf987c7590. | |||||
2017-09-11 | Backport: The Scintilla namespace is always active for internal symbols and ↵ | Neil | 1 | -2/+0 | |
for the lexer and document interfaces. Backport of changeset 6388:d62863ae40a3. | |||||
2017-08-28 | Backport: Bug [#1966]. "defined A" removes "A" before replacing "defined" ↵ | Jannick | 1 | -0/+1 | |
with value. Backport of changeset 6382:f5aebab4fb4b. | |||||
2017-08-28 | Backport: Bug [#1966]. #define A is treated as #define A 1. | Jannick | 1 | -0/+2 | |
Backport of changeset 6381:e4cfaeddf3a3. | |||||
2017-08-28 | Backport: Bug [#1966]. Default value of 0 for undefined preprocessor symbols. | Jannick | 1 | -2/+2 | |
Backport of changeset 6380:89e44071e21e. | |||||
2017-07-17 | Backport: Fix signed / unsigned comparison warnings. | Neil | 1 | -4/+4 | |
Backport of changeset 6354:4914db52c782. | |||||
2017-07-17 | Backport: Mark overriding methods as "override". | Neil Hodgson | 1 | -4/+4 | |
Backport of changeset 6350:fdc0103a84d0. | |||||
2017-07-17 | Backport: Implement style metadata for some languages. | Neil | 1 | -6/+81 | |
Add some helper methods to SubStyles for finding style metadata of substyles. Backport of changeset 6349:f350a2543488. | |||||
2017-06-22 | Backport: Add style metadata methods with null implementations. | Neil | 1 | -4/+16 | |
Backport based on changesets 6345:faecbd0078e5 and 6346:72bd27f81477. | |||||
2017-04-09 | Further use of range-for. | Neil | 1 | -9/+9 | |
2017-04-07 | Prefer C++ static cast over C-style casts. | Neil | 1 | -3/+3 | |
2017-04-06 | Added const to some lexers. | Neil | 1 | -21/+21 | |
2017-03-04 | Use C++11 keyword "override" for methods in lexers that override an interface. | Neil | 1 | -21/+21 | |
2016-11-05 | StyleContext no longer needs mask argument. | Neil | 1 | -1/+1 | |
Remove warning suppression pragma no longer needed for Perl's StyleContext. | |||||
2016-08-30 | Feature [feature-requests:#210]. Allow folding on #else and #elif. | Neil | 1 | -2/+13 | |
2016-08-20 | Use const reference parameter when it can prevent extra copies. | Neil | 1 | -1/+1 | |
2016-04-23 | Fix a bug with multi-line strings with line continuation where the string style | ActiveState | 1 | -0/+3 | |
overflowed after an edit. | |||||
2016-03-03 | CPP: Add support for folding on `(` and `)` | Colomban Wendling | 1 | -2/+2 | |
Feature [feature-requests:#1138]. | |||||
2015-11-20 | Remove line end whitespace. | Neil | 1 | -3/+3 | |
2015-07-30 | Use Sci_Position / Sci_PositionU for variables in lexers that represent | Joe Mueller | 1 | -28/+28 | |
positions and line numbers and may be widened to 64-bits in a future release. | |||||
2015-07-20 | Use Sci_Position when required to implement interfaces. | Neil | 1 | -8/+8 | |
2015-05-12 | Bug [#1719]. Fix #undef directive. | Neil | 1 | -3/+2 | |
2015-04-22 | Fix highlighting empty backquote strings (``) in cpp lexer | Jiří Techet | 1 | -1/+0 | |
The sc.Forward() is performed once more at the end of the function and performing it here causes the second ` is skipped in ``. Probably caused by copy-pasting the code above and not realizing this one reads just a single character. | |||||
2015-02-19 | Implement lexer.cpp.verbatim.strings.allow.escapes. | Neil Hodgson | 1 | -1/+8 | |
2014-11-28 | LexCPP: Also fold on square brackets | Colomban Wendling | 1 | -2/+2 | |
This allows to fold on array literals for languages like JavaScript that use square brackets to declare array literals. This should not change much for languages that only use square brackets for array indexation as the large majority of the time the open and close brackets are placed on the same line in these cases. | |||||
2014-06-19 | Bug [#1614]. Don't crash on incomplete macro definition "#define x(". | Neil Hodgson | 1 | -1/+3 | |
2014-05-31 | Safer handling of "#define X" which caused fault in debug build with Visual C++. | Neil | 1 | -1/+1 | |
2014-05-24 | Header include statements are now in a standardised order with that order | Neil | 1 | -1/+1 | |
defined in scripts/HeaderOrder.txt. | |||||
2014-05-24 | Fix raw string recognition so that R"xxx(blah)xxx" is styled as SCE_C_STRINGRAW. | Neil | 1 | -3/+11 | |
2014-01-20 | Fix typos in comments (lexers) | Stefan Weil | 1 | -2/+2 | |
2014-05-14 | Limit iterations when expanding macros in case a macro is recursive such as | Neil | 1 | -1/+4 | |
#define MAC(x) MAC(x+1) Also fixes macros that are co-recursive with other macros. | |||||
2014-05-13 | Feature [feature-requests:#1051]. Fixed shadowed local variable. | Neil | 1 | -1/+1 | |
2014-05-12 | Feature [feature-requests:#1051]. Support #if defined SYMBOL. | Neil | 1 | -94/+252 | |
Previously required braces around like #if defined(SYMBOL). Also understand macros with arguments such as version checking macros like #if GTK_CHECK_VERSION(2,22,0) | |||||
2014-04-29 | Fix some warnings instead of relying upon #pragma to hide them | Neil | 1 | -2/+2 | |
2014-04-19 | Use an unnamed namespace instead of static as classes and structs can't be ↵ | Neil | 1 | -9/+14 | |
static. | |||||
2014-04-19 | Optionally highlight escape sequences in strings as SCE_C_ESCAPESEQUENCE. | Neil | 1 | -2/+62 | |
From nkmathew. | |||||
2014-04-14 | Fix write one past array end bug. | Neil | 1 | -2/+3 | |
2014-04-03 | Feature [feature-requests:#1047]. Supports Go back quoted raw string ↵ | Neil | 1 | -0/+9 | |
literals with lexer.cpp.backquoted.strings option. From Eric Promislow. | |||||
2014-04-03 | C++ lexer can highlight task marker keywords in comments as SCE_C_TASKMARKER. | Neil | 1 | -0/+42 | |
From nkmathew. |