|
|
@ -2,6 +2,9 @@ |
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
var isSpace = require('../common/utils').isSpace; |
|
|
|
|
|
|
|
|
|
|
|
module.exports = function newline(state, silent) { |
|
|
|
var pmax, max, pos = state.pos; |
|
|
|
|
|
|
@ -32,7 +35,7 @@ module.exports = function newline(state, silent) { |
|
|
|
pos++; |
|
|
|
|
|
|
|
// skip heading spaces for next line
|
|
|
|
while (pos < max && state.src.charCodeAt(pos) === 0x20) { pos++; } |
|
|
|
while (pos < max && isSpace(state.src.charCodeAt(pos))) { pos++; } |
|
|
|
|
|
|
|
state.pos = pos; |
|
|
|
return true; |
|
|
|