Skip to content

Commit

Permalink
Be consistent with semicolons; clarify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
start committed Oct 14, 2020
1 parent cec9bee commit c762b96
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class TextConsumer {
private _previousChar!: string

constructor(private entireText: string) {
this.setIndex(0);
this.setIndex(0)
}

setIndex(newIndex: number) {
Expand Down
2 changes: 1 addition & 1 deletion src/Implementation/Parsing/Inline/Tokenizing/tokenize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ class Tokenizer {
}

return this.forgivingConventionHandlers.some(handler => {
const initialMarkupIndx = this.markupConsumer.index();
const initialMarkupIndx = this.markupConsumer.index()
const result = this.markupConsumer.consume(handler.delimiterPattern)

if (!result) {
Expand Down
4 changes: 2 additions & 2 deletions src/Implementation/Parsing/Outline/getOutlineSyntaxNodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function getOutlineSyntaxNodes(args: OutlineParser.Args): OutlineSyntaxNo
const sourceLineNumber =
args.sourceLineNumber + markupLineConsumer.countLinesConsumed()

// We pass these args to every outline convention parser.
// We pass these to every outline convention parser.
const outlineParserArgs: OutlineParser.Args = {
markupLines: markupLineConsumer.remaining(),
mostRecentSibling: last(nodes),
Expand All @@ -69,7 +69,7 @@ export function getOutlineSyntaxNodes(args: OutlineParser.Args): OutlineSyntaxNo

// If we've made this far, it means our parser found a match.
//
// Let's advance our line consumer...
// Let's advance our markup line consumer...
markupLineConsumer.advance(result.countLinesConsumed)
// ... and start over at the new markup position!
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function tryToParseBlankLineSeparation(args: OutlineParser.Args): Outline
}
}

const countBlankLines = markupLineConsumer.countLinesConsumed();
const countBlankLines = markupLineConsumer.countLinesConsumed()

if (!countBlankLines) {
// If there are no blank lines, we can't say we parsed anything. Bail!
Expand Down
2 changes: 1 addition & 1 deletion src/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const VERSION = '39.0.0'

import { Up } from './Implementation/Up'

const up = new Up();
const up = new Up()

export const parseAndRender = up.parseAndRender.bind(up)
export const parseAndRenderWithTableOfContents = up.parseAndRenderWithTableOfContents.bind(up)
Expand Down

0 comments on commit c762b96

Please sign in to comment.