- fix: highlighter can't correctly find the end of ANSI C-style Comments
This commit is contained in:
parent
cf14ca1777
commit
b62c166638
3
NEWS.md
3
NEWS.md
|
@ -1,3 +1,6 @@
|
|||
Version 0.8.2 For Dev-C++ 7 Beta
|
||||
- fix: highlighter can't correctly find the end of ANSI C-style Comments
|
||||
|
||||
Version 0.8.1 For Dev-C++ 7 Beta
|
||||
- fix: ConsolePaurser.exe only exits when press ENTER
|
||||
- fix: input/output/expected textedit in the problem view shouldn't autowrap lines
|
||||
|
|
|
@ -216,10 +216,14 @@ void CompilerManager::run(const QString &filename, const QString &arguments, con
|
|||
consoleFlag |= RPF_REDIRECT_INPUT;
|
||||
if (pSettings->executor().pauseConsole())
|
||||
consoleFlag |= RPF_PAUSE_CONSOLE;
|
||||
QString newArguments = QString(" %1 \"%2\" %3")
|
||||
.arg(consoleFlag)
|
||||
.arg(toLocalPath(filename)).arg(arguments);
|
||||
execRunner = new ExecutableRunner(includeTrailingPathDelimiter(pSettings->dirs().app())+"ConsolePauser.exe",newArguments,workDir);
|
||||
if (consoleFlag!=0) {
|
||||
QString newArguments = QString(" %1 \"%2\" %3")
|
||||
.arg(consoleFlag)
|
||||
.arg(toLocalPath(filename)).arg(arguments);
|
||||
execRunner = new ExecutableRunner(includeTrailingPathDelimiter(pSettings->dirs().app())+"ConsolePauser.exe",newArguments,workDir);
|
||||
} else {
|
||||
execRunner = new ExecutableRunner(filename,arguments,workDir);
|
||||
}
|
||||
execRunner->setStartConsole(true);
|
||||
} else {
|
||||
execRunner = new ExecutableRunner(filename,arguments,workDir);
|
||||
|
|
|
@ -87,11 +87,9 @@ void ExecutableRunner::run()
|
|||
[&](){
|
||||
errorOccurred= true;
|
||||
});
|
||||
// qDebug() << mFilename;
|
||||
// qDebug() << QProcess::splitCommand(mArguments);
|
||||
if (!redirectInput()) {
|
||||
process.closeWriteChannel();
|
||||
}
|
||||
// if (!redirectInput()) {
|
||||
// process.closeWriteChannel();
|
||||
// }
|
||||
process.start();
|
||||
process.waitForStarted(5000);
|
||||
if (process.state()==QProcess::Running && redirectInput()) {
|
||||
|
|
|
@ -313,6 +313,7 @@ void SynEditCppHighlighter::ansiCProc()
|
|||
} else {
|
||||
mRange.state = RangeState::rsUnknown;
|
||||
}
|
||||
finishProcess = true;
|
||||
} else
|
||||
mRun+=1;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue