File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed
Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -245,23 +245,21 @@ mlir.Tokenizer = class {
245245 } else {
246246 break ;
247247 }
248- } else { // opened
249- if ( ! this . currentChar ) {
248+ } else if ( ! this . currentChar ) {
249+ break ;
250+ } else if ( this . currentChar === '>' ) {
251+ result += this . currentChar ;
252+ this . advance ( ) ;
253+ opened -= 1 ;
254+ if ( opened === 0 ) {
250255 break ;
251- } else if ( this . currentChar === '>' ) {
252- result += this . currentChar ;
253- this . advance ( ) ;
254- opened -= 1 ;
255- if ( opened === 0 ) {
256- break ;
257- }
258- } else {
259- if ( this . currentChar === '<' ) {
260- opened += 1 ;
261- }
262- result += this . currentChar ;
263- this . advance ( ) ;
264256 }
257+ } else {
258+ if ( this . currentChar === '<' ) {
259+ opened += 1 ;
260+ }
261+ result += this . currentChar ;
262+ this . advance ( ) ;
265263 }
266264 }
267265
You can’t perform that action at this time.
0 commit comments