Skip to content

Commit 42013dc

Browse files
committed
from _ to -
1 parent 0d0d2b8 commit 42013dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mcparser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace microcode {
66
export function progToString(prog: ProgramDefn, ret: { s: string }) {
77
const ruleToString = (rule: RuleDefn) => {
88
const toToken = (tile: Tile) =>
9-
resolveTooltip("T" + getTid(tile)).replaceAll(" ", "_")
9+
resolveTooltip("T" + getTid(tile)).replaceAll(" ", "-")
1010
const tileToString = (tile: Tile) => {
1111
const tok = toToken(tile)
1212
if (tile instanceof ModifierEditor) {
@@ -52,7 +52,7 @@ namespace microcode {
5252
//% shim=TD_NOOP
5353
export function parseProg(str: string, ret: { p: ProgramDefn }) {
5454
const token2tile = (tok: string) => {
55-
const tid = tooltip2tid(tok.replaceAll("_", " "))
55+
const tid = tooltip2tid(tok.replaceAll("-", " "))
5656
control.assert(tid != undefined, `tok ${tok} does not have mapping`)
5757
// check to see if field editor needed
5858
const tile = getEditor(tid)

0 commit comments

Comments
 (0)