|
@ -127,8 +127,6 @@ LexerBlock.prototype.tokenize = function (state, startLine, endLine) { |
|
|
if (state.tShift[line] < state.blkIndent) { break; } |
|
|
if (state.tShift[line] < state.blkIndent) { break; } |
|
|
if (state.bqMarks[line] < state.bqLevel) { break; } |
|
|
if (state.bqMarks[line] < state.bqLevel) { break; } |
|
|
|
|
|
|
|
|
state.tight = !hasEmptyLines; |
|
|
|
|
|
|
|
|
|
|
|
// Try all possible rules.
|
|
|
// Try all possible rules.
|
|
|
// On success, rule should:
|
|
|
// On success, rule should:
|
|
|
//
|
|
|
//
|
|
@ -149,6 +147,10 @@ LexerBlock.prototype.tokenize = function (state, startLine, endLine) { |
|
|
|
|
|
|
|
|
line = state.line; |
|
|
line = state.line; |
|
|
|
|
|
|
|
|
|
|
|
// set state.tight iff we had an empty line before current tag
|
|
|
|
|
|
// i.e. latest empty line should not count
|
|
|
|
|
|
state.tight = !hasEmptyLines; |
|
|
|
|
|
|
|
|
if (line < endLine && isEmpty(state, line)) { |
|
|
if (line < endLine && isEmpty(state, line)) { |
|
|
hasEmptyLines = true; |
|
|
hasEmptyLines = true; |
|
|
line++; |
|
|
line++; |
|
|