Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c27905a43 | ||
|
|
51cd528040 | ||
|
|
7128a44adc | ||
|
|
a46a3bb869 | ||
|
|
4a2dad60c6 |
@@ -223,10 +223,15 @@ export abstract class CodeBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tempCursor < fileContent.length && fileContent[tempCursor] === '\n') {
|
if (tempCursor < fileContent.length && fileContent[tempCursor] === '\n') {
|
||||||
currentBlockString += '\n';
|
currentBlockString = trimEndPreserveNewlines(currentBlockString) + '\n';
|
||||||
lineCounter++;
|
lineCounter++;
|
||||||
lineCursor = 0;
|
lineCursor = 0;
|
||||||
leftCursor = tempCursor + 1;
|
leftCursor = tempCursor + 1;
|
||||||
|
} else if (tempCursor < fileContent.length && fileContent[tempCursor] === '-' && tempCursor + 1 < fileContent.length && fileContent[tempCursor + 1] === '-') {
|
||||||
|
// Found a comment after whitespace, trim the whitespace and position at the comment
|
||||||
|
currentBlockString = trimEndPreserveNewlines(currentBlockString) + '\n';
|
||||||
|
leftCursor = tempCursor;
|
||||||
|
lineCursor = tempLineCursor;
|
||||||
} else if (tempCursor > leftCursor) {
|
} else if (tempCursor > leftCursor) {
|
||||||
// We found whitespace but no newline, so position cursor at last whitespace
|
// We found whitespace but no newline, so position cursor at last whitespace
|
||||||
leftCursor = tempCursor;
|
leftCursor = tempCursor;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "dutchies-dcs-scripting-tools",
|
"name": "dutchies-dcs-scripting-tools",
|
||||||
"displayName": "Dutchies Dcs Scripting Tools",
|
"displayName": "Dutchies Dcs Scripting Tools",
|
||||||
"description": "Scripting tools to create DCS script and frameworks easier",
|
"description": "Scripting tools to create DCS script and frameworks easier",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "dutchie031",
|
"name": "dutchie031",
|
||||||
"email": "54616262+dutchie031@users.noreply.github.com"
|
"email": "54616262+dutchie031@users.noreply.github.com"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const esbuild = require("esbuild");
|
import esbuild from "esbuild";
|
||||||
|
|
||||||
const production = process.argv.includes('--production');
|
const production = process.argv.includes('--production');
|
||||||
const watch = process.argv.includes('--watch');
|
const watch = process.argv.includes('--watch');
|
||||||
@@ -9,7 +9,7 @@ async function main() {
|
|||||||
'src/index.ts'
|
'src/index.ts'
|
||||||
],
|
],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
format: 'cjs',
|
format: 'esm',
|
||||||
minify: production,
|
minify: production,
|
||||||
sourcemap: !production,
|
sourcemap: !production,
|
||||||
sourcesContent: false,
|
sourcesContent: false,
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "gh-scripting-compiler",
|
"name": "gh-scripting-compiler",
|
||||||
"version": "1.1.1",
|
"version": "1.1.5",
|
||||||
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node esbuild.js",
|
"build": "node esbuild.js",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"dcs-script-compiler":[
|
"dcs-script-compiler":[
|
||||||
"../compiler/src/ScriptCompiler.ts"
|
"../../compiler/src/ScriptCompiler.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gh-lua-addon-installer",
|
"name": "gh-lua-addon-installer",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node esbuild.js",
|
"build": "node esbuild.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user