Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 1x 1x | const gbvmGrammar = {
comment: {
pattern: /;.*/,
greedy: true,
},
number: {
pattern:
/(^|[^\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?|\d+(?:_\d+)*n|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?)(?![\w$])/,
lookbehind: true,
},
instruction: {
pattern: /(^|\s)VM_[^\s]*/,
lookbehind: true,
},
asset: {
pattern: /___bank_([^\s]*)\s*,\s*_\1/,
},
variable: {
pattern: /VAR_([^\s]*)/,
},
};
export default gbvmGrammar;
|