We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 390f6a1 commit 7c8432bCopy full SHA for 7c8432b
1 file changed
test_check.m
@@ -112,3 +112,17 @@
112
tokens = tokenize_code('[a,b],');
113
assert(tokens(3).hasType('punctuation'))
114
assert(tokens(6).hasType('linebreak'))
115
+
116
+%% comments follow continuation operator
117
+tokens = tokenize_code('... % this is a comment');
118
+assert(tokens(1).hasType('punctuation'));
119
+assert(tokens(3).hasType('comment'));
120
121
+tokens = tokenize_code('... this is a comment');
122
123
+assert(tokens(2).hasType('space'));
124
125
126
+tokens = tokenize_code('....');
127
128
+assert(tokens(2).hasType('comment'));
0 commit comments