aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/pascal.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/pascal.js')
-rw-r--r--lib/compilers/pascal.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/compilers/pascal.js b/lib/compilers/pascal.js
index 2da67f83e..33980a072 100644
--- a/lib/compilers/pascal.js
+++ b/lib/compilers/pascal.js
@@ -27,11 +27,11 @@ import path from 'path';
import fs from 'fs-extra';
import _ from 'underscore';
-import { BaseCompiler } from '../base-compiler';
+import {BaseCompiler} from '../base-compiler';
import * as utils from '../utils';
-import { PascalParser } from './argument-parsers';
-import { PascalUtils } from './pascal-utils';
+import {PascalParser} from './argument-parsers';
+import {PascalUtils} from './pascal-utils';
export class FPCCompiler extends BaseCompiler {
static get key() {
@@ -113,12 +113,9 @@ export class FPCCompiler extends BaseCompiler {
const lastLinefeedBeforeStart = input.lastIndexOf('\n', relevantAsmStartsAt);
if (lastLinefeedBeforeStart !== -1) {
input =
- input.substr(0, input.indexOf('00000000004')) + '\n' +
- input.substr(lastLinefeedBeforeStart + 1);
+ input.substr(0, input.indexOf('00000000004')) + '\n' + input.substr(lastLinefeedBeforeStart + 1);
} else {
- input =
- input.substr(0, input.indexOf('00000000004')) + '\n' +
- input.substr(relevantAsmStartsAt);
+ input = input.substr(0, input.indexOf('00000000004')) + '\n' + input.substr(relevantAsmStartsAt);
}
}
return input;
@@ -129,11 +126,14 @@ export class FPCCompiler extends BaseCompiler {
}
async saveDummyProjectFile(filename, unitName, unitPath) {
- await fs.writeFile(filename,
+ await fs.writeFile(
+ filename,
+ // prettier-ignore
'program prog;\n' +
'uses ' + unitName + ' in \'' + unitPath + '\';\n' +
'begin\n' +
- 'end.\n');
+ 'end.\n',
+ );
}
async writeAllFiles(dirPath, source, files, filters) {