You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Compiler/Lexers/LexerModelicaDiff.mo
+59Lines changed: 59 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1446,6 +1446,11 @@ algorithm
1446
1446
// Do not delete whitespace in-between two tokens
1447
1447
case (e1 as (Diff.Equal,_))::(Diff.Delete,t1 as TOKEN(id=TokenId.NEWLINE))::(Diff.Delete,t2 as TOKEN(id=TokenId.WHITESPACE))::(e2 as (Diff.Equal,_))::rest then (false,e1::(Diff.Equal,t1)::(Diff.Equal,t2)::e2::rest,tmp);
1448
1448
case (e1 as (Diff.Equal,_))::(Diff.Delete,t as TOKEN(id=TokenId.WHITESPACE))::(e2 as (Diff.Equal,_))::rest then (false,e1::(Diff.Equal,t)::e2::rest,tmp);
Copy file name to clipboardExpand all lines: Compiler/Lexers/lexerModelicaDiff.l
+59Lines changed: 59 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -280,6 +280,11 @@ algorithm
280
280
// Do not delete whitespace in-between two tokens
281
281
case (e1 as (Diff.Equal,_))::(Diff.Delete,t1 as TOKEN(id=TokenId.NEWLINE))::(Diff.Delete,t2 as TOKEN(id=TokenId.WHITESPACE))::(e2 as (Diff.Equal,_))::rest then (false,e1::(Diff.Equal,t1)::(Diff.Equal,t2)::e2::rest,tmp);
282
282
case (e1 as (Diff.Equal,_))::(Diff.Delete,t as TOKEN(id=TokenId.WHITESPACE))::(e2 as (Diff.Equal,_))::rest then (false,e1::(Diff.Equal,t)::e2::rest,tmp);
283
+
case (e1 as (Diff.Equal,TOKEN(id=t3)))::rest
284
+
guard t3<>TokenId.WHITESPACE and t3<>TokenId.NEWLINE and deleteWhitespaceFollowedByEqualNonWhitespace(rest)
0 commit comments