mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 09:50:27 +00:00
Fixed coding standard nits
This commit is contained in:
parent
2bd9cc45fa
commit
1b226c7556
@ -166,12 +166,16 @@ WikiParser.prototype.findNextMatch = function(rules,startPos) {
|
||||
};
|
||||
|
||||
WikiParser.prototype.parseRule = function(rule) {
|
||||
var start = this.pos;
|
||||
var blocks = rule.parse();
|
||||
var start = this.pos,
|
||||
blocks = rule.parse();
|
||||
for(var i=0; i<blocks.length; i++) {
|
||||
var block = blocks[i];
|
||||
if (block.start !== undefined) block.start = start;
|
||||
if (block.end !== undefined) block.end = this.pos;
|
||||
if(block.start !== undefined) {
|
||||
block.start = start;
|
||||
}
|
||||
if(block.end !== undefined) {
|
||||
block.end = this.pos;
|
||||
}
|
||||
}
|
||||
return blocks;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user