- fix: Hex float point literal is not correctly colored.
This commit is contained in:
parent
da3dda97e3
commit
989f1a892d
1
NEWS.md
1
NEWS.md
|
@ -19,6 +19,7 @@ Red Panda C++ Version 2.16
|
||||||
- enhancement: Switch current call stack frame in the CPU info dialog
|
- enhancement: Switch current call stack frame in the CPU info dialog
|
||||||
- fix: Shouldn't try evaluate value of the selection in the cpu info dialog.
|
- fix: Shouldn't try evaluate value of the selection in the cpu info dialog.
|
||||||
- enhancement: Show oct/bin/bin value in the memory view's tooltip.
|
- enhancement: Show oct/bin/bin value in the memory view's tooltip.
|
||||||
|
- fix: Hex float point literal is not correctly colored.
|
||||||
|
|
||||||
Red Panda C++ Version 2.15
|
Red Panda C++ Version 2.15
|
||||||
|
|
||||||
|
|
|
@ -686,7 +686,7 @@ void CppSyntaxer::numberProc()
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '.':
|
case '.':
|
||||||
if (mTokenId != TokenId::Hex && mTokenId != TokenId::Octal) {
|
if (mTokenId != TokenId::Octal) {
|
||||||
mTokenId = TokenId::Float;
|
mTokenId = TokenId::Float;
|
||||||
} else {
|
} else {
|
||||||
mTokenId = TokenId::Unknown;
|
mTokenId = TokenId::Unknown;
|
||||||
|
@ -724,13 +724,10 @@ void CppSyntaxer::numberProc()
|
||||||
break;
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
case 'P':
|
case 'P':
|
||||||
if (mTokenId!=TokenId::Hex) {
|
mTokenId = TokenId::Float;
|
||||||
mTokenId = TokenId::Float;
|
mRun++;
|
||||||
|
if (mRun < mLineSize && (mLine[mRun]== '+' || mLine[mRun]== '-')) // number = float, but no exponent. an arithmetic operator
|
||||||
mRun++;
|
mRun++;
|
||||||
if (mRun < mLineSize && (mLine[mRun]== '+' || mLine[mRun]== '-')) // number = float, but no exponent. an arithmetic operator
|
|
||||||
mRun++;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue