- enhancement: correctly highlight multiline string literals that has empty lines.
This commit is contained in:
parent
7ad6a64150
commit
45c191bae4
1
NEWS.md
1
NEWS.md
|
@ -17,6 +17,7 @@ Red Panda C++ Version 2.23
|
||||||
- fix: GNU assembly files (.s) are not shown in the files view.
|
- fix: GNU assembly files (.s) are not shown in the files view.
|
||||||
- fix: "typedef struct" that don't have definition of the struct is not correctly parsed.
|
- fix: "typedef struct" that don't have definition of the struct is not correctly parsed.
|
||||||
- enhancement: correctly highlight multiline raw string literals.
|
- enhancement: correctly highlight multiline raw string literals.
|
||||||
|
- enhancement: correctly highlight multiline string literals.
|
||||||
- change: remove "Assembly" color scheme item (it's not used anymore).
|
- change: remove "Assembly" color scheme item (it's not used anymore).
|
||||||
- fix: crash when parsing files containing inline assembly code.
|
- fix: crash when parsing files containing inline assembly code.
|
||||||
- fix: crash when source files contains macro definitions like "#define cfun (cfun + 0)"
|
- fix: crash when source files contains macro definitions like "#define cfun (cfun + 0)"
|
||||||
|
|
|
@ -1530,6 +1530,8 @@ int CppSyntaxer::getTokenPos()
|
||||||
void CppSyntaxer::next()
|
void CppSyntaxer::next()
|
||||||
{
|
{
|
||||||
mTokenPos = mRun;
|
mTokenPos = mRun;
|
||||||
|
if (mLineSize == 0 && mRange.state == RangeState::rsString)
|
||||||
|
mRange.state=RangeState::rsUnknown;
|
||||||
do {
|
do {
|
||||||
if (mRun>=mLineSize) {
|
if (mRun>=mLineSize) {
|
||||||
procNull();
|
procNull();
|
||||||
|
|
Loading…
Reference in New Issue