<\/b>/g, '');
+ return start + '' + cmd + ' ' + argsInner;
default:
argsInner = argsInner.split(/ /).map((a) => {
if (cmd === 'TEST' && a.match(/^(EOF|MRD)$/)) {
- return '' + a + ''; // Special test cases
+ return '' + a + ''; // Special test cases
} else if (a.match(/^-?\d+$/)) {
- return '' + a + ''; // Integers
+ return '' + a + ''; // Integers
} else if (a.match(/^#/)) {
- return '' + a + ''; // Intefaces
+ return '' + a + ''; // Interfaces
+ } else if (a.match(/^@/)) {
+ return '' + a + ''; // Repetitions
} else if (a.match(/[XFTM]/)) {
- return '' + a + ''; // Registers
+ return '' + a + ''; // Registers
}
return a;
}).join(' ');
diff --git a/package.json b/package.json
index 48373d67..8655e58a 100644
--- a/package.json
+++ b/package.json
@@ -63,7 +63,7 @@
"inquirer": "^6.0.0",
"inquirer-datepicker-prompt": "^0.4.2",
"js-yaml": "^3.11.0",
- "marked": "^0.4.0",
+ "marked": "^0.5.0",
"remove-markdown": "^0.3.0",
"shelljs": "^0.8.2"
},
diff --git a/test/marky-mark.js b/test/marky-mark.js
index c1810914..a14c92e3 100644
--- a/test/marky-mark.js
+++ b/test/marky-mark.js
@@ -522,7 +522,7 @@ DEF [r:and this is a remark with a | or so] FED:|]
},
// -----------------------------------------------------------------------
{
- language: 'Axiom for Exapunk',
+ language: 'Axiom for Exapunks',
snippet: `GRAB 200
SEEK 9999
SEEK -2
@@ -556,9 +556,14 @@ LINK -1
DROP
NOTE DONE
+
+@REP 3
+ TEST X = @{0,5}
+ TJMP CASE@{0,1}
+@END
`,
hasComments: true,
- expected: 124
+ expected: 124 + 16
}
];