Browse Source

remove snake_case from indentFound

pull/220/head
Sean Lang 9 years ago
parent
commit
1c31350a6d
  1. 10
      lib/rules_block/state_block.js

10
lib/rules_block/state_block.js

@ -7,7 +7,7 @@ var isSpace = require('../common/utils').isSpace;
function StateBlock(src, md, env, tokens) {
var ch, s, start, pos, len, indent, offset, indent_found;
var ch, s, start, pos, len, indent, offset, indentFound;
this.src = src;
@ -44,12 +44,12 @@ function StateBlock(src, md, env, tokens) {
// Create caches
// Generate markers.
s = this.src;
indent_found = false;
indentFound = false;
for (start = pos = indent = offset = 0, len = s.length; pos < len; pos++) {
ch = s.charCodeAt(pos);
if (!indent_found) {
if (!indentFound) {
if (isSpace(ch)) {
indent++;
@ -60,7 +60,7 @@ function StateBlock(src, md, env, tokens) {
}
continue;
} else {
indent_found = true;
indentFound = true;
}
}
@ -71,7 +71,7 @@ function StateBlock(src, md, env, tokens) {
this.tShift.push(indent);
this.sCount.push(offset);
indent_found = false;
indentFound = false;
indent = 0;
offset = 0;
start = pos + 1;

Loading…
Cancel
Save