forked from nim-lang/Nim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rst: add missing line/column info for some warnings (nim-lang#18383)
* rst: add missing line/column info for some warnings * add workaround * use TLineInfo/FileIndex for storing file names * fix blank lines in include file (rm harmful strip) * don't use ref TLineInfo * return `hasToc` as output parameter for uniformity * Update compiler/docgen.nim Co-authored-by: Timothee Cour <[email protected]> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <[email protected]> * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <[email protected]> * address review - stylistic things * Update compiler/docgen.nim Co-authored-by: Timothee Cour <[email protected]> * unify RST warnings/errors names * doAssert + minor name change * fix a bug caught by doAssert * apply strbasics.strip to final HTML/Latex * rm redundant filename * fix test after rebase * delete `order` from rnFootnoteRef, also display errors/warnings properly when footnote references are from different files * Update compiler/lineinfos.nim Co-authored-by: Timothee Cour <[email protected]> * Update lib/packages/docutils/rstast.nim Co-authored-by: Timothee Cour <[email protected]> * Update lib/packages/docutils/rstast.nim Co-authored-by: Timothee Cour <[email protected]> * Update lib/packages/docutils/rstast.nim Co-authored-by: Timothee Cour <[email protected]> * revert because of error: Error: cannot prove that it's safe to initialize 'info' with the runtime value for the discriminator 'kind' * Update lib/packages/docutils/rstgen.nim Co-authored-by: Timothee Cour <[email protected]> * apply suggestion * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <[email protected]> * add Table for string->file name mapping * do not import compiler/lineinfos * fix ambiguous calls Co-authored-by: Timothee Cour <[email protected]> Co-authored-by: narimiran <[email protected]>
- Loading branch information
Showing
8 changed files
with
344 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.