Added :{number} support

This commit is contained in:
2017-03-17 13:34:31 +08:00
parent 68ee6dacc6
commit 1511c70957
12 changed files with 313 additions and 37 deletions
@@ -79,6 +79,9 @@
case "registers":
out[ CMD_TYPE ] = "REGISTERS";
break;
case "marks":
out[ CMD_TYPE ] = "MARKS";
break;
case "ver":
case "version":
out[ CMD_TYPE ] = "VERSION";
@@ -90,6 +93,13 @@
case "varec":
out[ CMD_TYPE ] = "VA_REC";
break;
case "": // Range jumping
pattern.push( true );
case "p":
allowRange = true;
out[ CMD_TYPE ] = "PRINT";
break;
}
if( range !== "" )