aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexCPP.cxx
AgeCommit message (Collapse)AuthorFilesLines
2015-02-19Implement lexer.cpp.verbatim.strings.allow.escapes.Neil Hodgson1-1/+8
2014-11-28LexCPP: Also fold on square bracketsColomban Wendling1-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-19Bug [#1614]. Don't crash on incomplete macro definition "#define x(".Neil Hodgson1-1/+3
2014-05-31Safer handling of "#define X" which caused fault in debug build with Visual C++.Neil1-1/+1
2014-05-24Header include statements are now in a standardised order with that orderNeil1-1/+1
defined in scripts/HeaderOrder.txt.
2014-05-24Fix raw string recognition so that R"xxx(blah)xxx" is styled as SCE_C_STRINGRAW.Neil1-3/+11
2014-01-20Fix typos in comments (lexers)Stefan Weil1-2/+2
2014-05-14Limit iterations when expanding macros in case a macro is recursive such asNeil1-1/+4
#define MAC(x) MAC(x+1) Also fixes macros that are co-recursive with other macros.
2014-05-13Feature [feature-requests:#1051]. Fixed shadowed local variable.Neil1-1/+1
2014-05-12Feature [feature-requests:#1051]. Support #if defined SYMBOL.Neil1-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-29Fix some warnings instead of relying upon #pragma to hide themNeil1-2/+2
2014-04-19Use an unnamed namespace instead of static as classes and structs can't be ↵Neil1-9/+14
static.
2014-04-19Optionally highlight escape sequences in strings as SCE_C_ESCAPESEQUENCE.Neil1-2/+62
From nkmathew.
2014-04-14Fix write one past array end bug.Neil1-2/+3
2014-04-03Feature [feature-requests:#1047]. Supports Go back quoted raw string ↵Neil1-0/+9
literals with lexer.cpp.backquoted.strings option. From Eric Promislow.
2014-04-03C++ lexer can highlight task marker keywords in comments as SCE_C_TASKMARKER.Neil1-0/+42
From nkmathew.
2013-12-17Bug [#1564]. Keyword followed immediately by quoted string continued keyword ↵Neil1-0/+2
style.
2013-12-15Make single argument constructors explicit to avoid unexpected conversions.Neil1-2/+2
2013-12-15Format normalization - whitespace and braces made consistent.Neil1-1/+1
Parameter names added to method declarations.
2013-11-17Highlight comment doc keywords at end of document.Neil1-1/+1
2013-11-17Bug [#1551]. Doxygen keywords @code{.fileExtension} and @param[in,out] are ↵Neil1-1/+7
split. From Alpha.
2013-10-28Allow single quote digit separators for C++14.Neil1-0/+1
2013-10-28Added lexical class for user defined literals in C++11.Neil1-4/+19
2013-10-17Bug [#1538]. PP-line comments lost from EOL string.Neil1-1/+1
From Alpha.
2013-09-05Added SCI_GETPRIMARYSTYLEFROMSTYLE.Neil1-0/+3
2013-09-05Bug [#1520]. Make SCI_GETSTYLEFROMSUBSTYLE work for secondary styles.Neil1-1/+3
2013-09-03Added GetStyleFromSubStyle.Neil1-0/+3
Tests for this and other sub styles methods.
2013-05-24Made methods const where they can be and are logically const as well.nyamatongwe1-2/+2
2013-05-16Feature: [feature-requests:#990]. Fix for #define foo /**/nyamatongwe1-1/+0
From Alpha.
2013-05-15Feature: [feature-requests:#990]. Style added for preprocessor doc comment.nyamatongwe1-2/+8
From Alpha.
2013-05-08Hide implementation of WordList.nyamatongwe1-3/+3
2013-04-01Reduce scope of variable.nyamatongwe1-2/+1
2013-03-18Bug: [#1454]. Reject raw strings when character after " is in " )\\\t\v\f\n".nyamatongwe1-1/+3
See C++11 standard 2.14.5 String literals.
2013-03-07Bug: [#482]. Refix to make /// comment not affect folding of following /* ↵nyamatongwe1-3/+7
comment.
2013-02-21Feature: [#978]. Update preprocessor defines upon encountering an #undef ↵nyamatongwe1-3/+19
directive. From Alpha.
2013-01-19Implement Unicode line ends and substyles in C++ lexer.nyamatongwe1-21/+72
2012-12-30Fix parsing of JavaScript regular expressions containing a delimiter in a rangeColomban Wendling1-6/+11
Regular expression "/[/]/" is valid, the second "/" being escaped by the character range ("[]"). Also, escape any \-prefixed character, including "[" and "]".
2012-12-30Bug #3578824. Ignore comments when evaluating preprocessor expressions.nyamatongwe1-1/+4
From Isiledhel.
2012-12-30Bug #3578824. Avoid crashes due to char being signed so negative for non-ASCII.nyamatongwe1-5/+5
From Isiledhel.
2012-10-11LexCPP: recognize hexadecimal floating point binary exponentsColomban Wendling1-1/+3
--- lexers/LexCPP.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
2012-09-04Don't treat '//' in include path as comment start. Bug #3519260.nyamatongwe1-3/+8
From Sakshi Verma.
2012-07-10Turn off '$' when lexer.cpp.allow.dollars changes to 0. Bug #3541461.nyamatongwe1-1/+6
2012-06-22Bug #3487406. New style SCE_C_PREPROCESSORCOMMENT for stream commentsnyamatongwe1-2/+14
inside preprocessor directives. Includes code from Marko Njezic.
2012-06-22Prevent empty lines from continuing preprocessor style.nyamatongwe1-3/+4
2012-06-08Bug #3533036. Properly mask state when determining previousMarko Njezic1-1/+1
non whitespace character and counting visible characters in line.
2012-05-05Make destructors virtual to avoid warnings from g++ 4.7.nyamatongwe1-1/+1
2012-03-22Bug #3509317. Properly mask state when re-lexing. Remove dead code.Marko Njezic1-12/+7
2012-02-28Bug #3495445. Properly mask restored state after processing keywords in documentMarko Njezic1-1/+1
comment that's inside disabled preprocessor macro.
2011-12-13Bug #3458508. Fixed preprocessor structure messed up by continuation lines.nyamatongwe1-0/+2
2011-11-17Fix crash caused by out-of-bounds memory access for line:nyamatongwe1-1/+1
#if defined( XXX 1 From Stefan Weil.