Skip to content

Commit a92b8f9

Browse files
committed
Add linebreaks and add TODO
1 parent 1906c58 commit a92b8f9

File tree

1 file changed

+7
-2
lines changed
  • lib/node_modules/@stdlib/utils/dsv/base/parse/lib/states

1 file changed

+7
-2
lines changed

lib/node_modules/@stdlib/utils/dsv/base/parse/lib/states/comment.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable max-len, no-underscore-dangle */
19+
/* eslint-disable no-underscore-dangle */
2020

2121
'use strict';
2222

@@ -62,8 +62,13 @@ function processor( parser ) {
6262
function next( ch ) {
6363
debug( 'Char: %s', ch );
6464

65+
// FIXME: handle left whitespace trim
66+
6567
// Check for the end of the commented line...
66-
if ( ch === newline[ newlineLastIndex] && parser._scan( newline, newlineLastIndex ) ) {
68+
if (
69+
ch === newline[ newlineLastIndex ] &&
70+
parser._scan( newline, newlineLastIndex )
71+
) {
6772
// Rewind the cursor to point to the last character before the newline character sequence:
6873
debug( 'Newline.' );
6974
parser._rewind( newlineLastIndex )._changeState( INIT );

0 commit comments

Comments
 (0)