Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2019-03-23 | Simplified preprocessor conditional styling code, renamed 'active' to 'inactive' | Neil | 1 | -33/+63 | |
as that is more correct, added comments and helper methods, removed lines that had no effect. Behaviour unaltered. | |||||
2019-03-23 | Fix warnings from MSVC Code Analysis. | Neil | 1 | -35/+44 | |
2019-01-15 | Treat "#if(" as preprocessor directive "#if" followed by operator "(". | Neil | 1 | -1/+1 | |
2018-12-12 | 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. | |||||
2018-12-12 | Bug [#2069]. LexCPP: fix bug in arithmetic calculation by adding precedence ↵ | Jannick | 1 | -5/+9 | |
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 | |||||
2018-12-04 | Bug [#2062]. Interpret continued preprocessor lines correctly by reading all of | Neil | 1 | -10/+20 | |
the logical line. | |||||
2018-09-24 | Bug [#2045]. LexCPP: Fix 'elif' token length | huki | 1 | -1/+1 | |
2018-09-18 | Guard against shifting by negative amount as that is undefined behaviour. | Neil Hodgson | 1 | -1/+5 | |
2018-06-04 | Use const and noexcept, initialize, avoid casts and improve variable name. | Neil | 1 | -29/+29 | |
2018-06-04 | Use lambda in preference to function object. | Neil | 1 | -10/+2 | |
2018-04-14 | Undo some changes that snuck in the last change set. | Neil | 1 | -7/+7 | |
2018-04-14 | Make some changes recommended by clang-tidy. | Neil Hodgson | 1 | -9/+10 | |
2018-03-16 | Remove line-end white space. | Neil | 1 | -2/+2 | |
2017-09-11 | The Scintilla namespace is always active for internal symbols and for the lexer | Neil | 1 | -2/+0 | |
interfaces ILexer4 and IDocument. | |||||
2017-08-28 | Bug [#1966]. "defined A" removes "A" before replacing "defined" with value. | Jannick | 1 | -0/+1 | |
2017-08-28 | Bug [#1966]. #define A is treated as #define A 1. | Jannick | 1 | -0/+2 | |
2017-08-28 | Bug [#1966]. Default value of 0 for undefined preprocessor symbols. | Jannick | 1 | -2/+2 | |
2017-07-17 | Fix signed / unsigned comparison warnings. | Neil | 1 | -4/+4 | |
2017-07-17 | Mark overriding methods as "override". | Neil Hodgson | 1 | -4/+4 | |
2017-07-17 | Implement style metadata for some languages. | Neil | 1 | -6/+81 | |
Add some helper methods to SubStyles for finding style metadata of substyles. | |||||
2017-06-22 | Add style metadata methods with null implementations. | Neil | 1 | -0/+12 | |
2017-06-22 | Merge Ilexer and ILexerWithSubStyles into ILexer4 to avoid need for version | Neil | 1 | -4/+4 | |
checking in 4.0. Use lvRelease4 ID. | |||||
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 | |