import makefile highlighter
This commit is contained in:
parent
b4e561cf83
commit
263cece0ce
1
NEWS.md
1
NEWS.md
|
@ -1,6 +1,7 @@
|
||||||
Red Panda C++ Version 2.6
|
Red Panda C++ Version 2.6
|
||||||
|
|
||||||
- enhancement: Highlighter for makefiles
|
- enhancement: Highlighter for makefiles
|
||||||
|
- fix: QSortFilterProxyModel not correctly cleared when exiting and project closed. (ASSERT fails in DEBUG mode.)
|
||||||
|
|
||||||
Red Panda C++ Version 2.5
|
Red Panda C++ Version 2.5
|
||||||
|
|
||||||
|
|
|
@ -511,6 +511,12 @@ void MakefileHighlighter::next()
|
||||||
case '#':
|
case '#':
|
||||||
procComment();
|
procComment();
|
||||||
break;
|
break;
|
||||||
|
case '-':
|
||||||
|
if (mState == RangeState::Command)
|
||||||
|
procSymbol();
|
||||||
|
else
|
||||||
|
procIdentifier();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (mLine[mRun]>='0' && mLine[mRun]<='9') {
|
if (mLine[mRun]>='0' && mLine[mRun]<='9') {
|
||||||
procNumber();
|
procNumber();
|
||||||
|
@ -606,6 +612,10 @@ void MakefileHighlighter::next()
|
||||||
if (mLine[mRun+1]=='=') {
|
if (mLine[mRun+1]=='=') {
|
||||||
mRun++;
|
mRun++;
|
||||||
procAssignment();
|
procAssignment();
|
||||||
|
} else if (mLine[mRun+1]==':') {
|
||||||
|
mRun+=2;
|
||||||
|
mTokenID = TokenId::Target;
|
||||||
|
mState = RangeState::Prequisitions;
|
||||||
} else {
|
} else {
|
||||||
mRun++;
|
mRun++;
|
||||||
mTokenID = TokenId::Target;
|
mTokenID = TokenId::Target;
|
||||||
|
|
Loading…
Reference in New Issue