@@ -25,7 +25,7 @@ namespace ts.pxtc.assembler {
2525 labelName ?: string ;
2626 }
2727
28- export function lf ( fmt : string , ...args : any [ ] ) {
28+ export function lf ( fmt : string , ...args : any [ ] ) { // @ignorelf @
2929 return fmt . replace ( / { ( \d + ) } / g, ( match , index ) => args [ + index ] ) ;
3030 }
3131
@@ -100,7 +100,7 @@ namespace ts.pxtc.assembler {
100100 stack = ( v / this . ei . wordSize ( ) ) ;
101101 }
102102 } else if ( enc . isRegList ) {
103- // register lists are ARM-specific - this code not used in AVR
103+ // register lists are ARM-specific - this code not used in AVR
104104 if ( actual != "{" ) return emitErr ( "expecting {" , actual ) ;
105105 v = 0 ;
106106 while ( tokens [ j ] != "}" ) {
@@ -133,7 +133,7 @@ namespace ts.pxtc.assembler {
133133 if ( ln . bin . finalEmit )
134134 return emitErr ( "unknown label" , actual )
135135 else
136- // just need some value when we are
136+ // just need some value when we are
137137 // doing some pass other than finalEmit
138138 v = 8 ; // needs to be divisible by 4 etc
139139 }
@@ -187,7 +187,7 @@ namespace ts.pxtc.assembler {
187187 export class Line {
188188 public type : string ;
189189 public lineNo : number ;
190- public words : string [ ] ; // the tokens in this line
190+ public words : string [ ] ; // the tokens in this line
191191 public scope : string ;
192192 public location : number ;
193193 public instruction : Instruction ;
@@ -285,7 +285,7 @@ namespace ts.pxtc.assembler {
285285 return this . location ( ) + this . baseOffset ;
286286 }
287287
288- // parsing of an "integer", well actually much more than
288+ // parsing of an "integer", well actually much more than
289289 // just that
290290 public parseOneInt ( s : string ) : number {
291291 if ( ! s )
@@ -1113,7 +1113,7 @@ namespace ts.pxtc.assembler {
11131113 export interface Encoder {
11141114 name : string ;
11151115 pretty : string ;
1116- // given a value, check it is the right number of bits and
1116+ // given a value, check it is the right number of bits and
11171117 // translate the value to the proper set of bits
11181118 encode : ( v : number ) => number ;
11191119 isRegister : boolean ;
@@ -1288,7 +1288,7 @@ namespace ts.pxtc.assembler {
12881288 function parseString ( s : string ) {
12891289 s = s . replace ( / \\ \\ / g, "\\B" ) // don't get confused by double backslash
12901290 . replace ( / \\ ( [ ' \? ] ) / g, ( f , q ) => q ) // these are not valid in JSON yet valid in C
1291- . replace ( / \\ [ z 0 ] / g, "\u0000" ) // \0 is valid in C
1291+ . replace ( / \\ [ z 0 ] / g, "\u0000" ) // \0 is valid in C
12921292 . replace ( / \\ x ( [ 0 - 9 a - f ] [ 0 - 9 a - f ] ) / gi, ( f , h ) => "\\u00" + h )
12931293 . replace ( / \\ B / g, "\\\\" ) // undo anti-confusion above
12941294 try {
0 commit comments