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