Skip to content

Commit 16f97d9

Browse files
philipc-mwPrabhakar Kumar
authored and
Prabhakar Kumar
committed
Fixes line endings for Lezer tests failing on Windows.
1 parent e42b391 commit 16f97d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jupyter_matlab_labextension/src/lezer-matlab/src/parse_comments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const parseComments = new ExternalTokenizer((input) => {
108108
// If the line starts with anything other than a percentage then it is MATLAB Code.
109109
// If the input.input.string exists then check it's length otherwise ignore the keys by returning true.
110110
if (
111-
input.peek(0) !== fileStart && input.peek(0) !== newline &&
111+
!lineEndArray.includes(input.peek(0)) &&
112112
(
113113
!('input' in input) ||
114114
!('string' in input.input) ||

0 commit comments

Comments
 (0)