Skip to content

Commit

Permalink
rm redundant filename
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mr committed Jul 10, 2021
1 parent f514182 commit fe74530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/docgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ proc parseRst(text, filename: string,
line, column: int,
conf: ConfigRef, sharedState: PRstSharedState): PRstNode =
declareClosures()
result = rstParsePass1(text, filename, line, column, sharedState)
result = rstParsePass1(text, line, column, sharedState)

proc getOutFile2(conf: ConfigRef; filename: RelativeFile,
ext: string, guessTarget: bool): AbsoluteFile =
Expand Down
4 changes: 2 additions & 2 deletions lib/packages/docutils/rst.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2874,7 +2874,7 @@ proc parseDotDot(p: var RstParser): PRstNode =
else:
result = parseComment(p, col)

proc rstParsePass1*(fragment, filename: string,
proc rstParsePass1*(fragment: string,
line, column: int,
sharedState: PRstSharedState): PRstNode =
## Parses an RST `fragment`.
Expand Down Expand Up @@ -3021,7 +3021,7 @@ proc rstParse*(text, filename: string,
## argument `filenames` (it is being filled here at least with `filename`
## and possibly with other files from RST ``.. include::`` statement).
var sharedState = newRstSharedState(options, filename, findFile, msgHandler)
let unresolved = rstParsePass1(text, filename, line, column, sharedState)
let unresolved = rstParsePass1(text, line, column, sharedState)
preparePass2(sharedState, unresolved)
result.node = resolveSubs(sharedState, unresolved)
result.filenames = sharedState.filenames
Expand Down

0 comments on commit fe74530

Please sign in to comment.