File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments