summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2022-06-04 08:03:03 +0300
committerGitHub <noreply@github.com>2022-06-04 07:03:03 +0200
commit4341b06f65396c63eec3689d0f8bb00db26c362f (patch)
treefc79066b6f922e6112d32a351033cc071a3581d9 /compiler
parentf7a13f62d634300c3cf68e36dd7926a6a235d52f (diff)
downloadNim-4341b06f65396c63eec3689d0f8bb00db26c362f.tar.gz
RST: improve simple tables (#19859)
* RST: improve simple tables

* nim 1.0 gotchas

* Still allow legacy boundaries like `----`
Diffstat (limited to 'compiler')
-rw-r--r--compiler/docgen.nim1
-rw-r--r--compiler/lineinfos.nim2
2 files changed, 3 insertions, 0 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index f633a57a0..390f44f2e 100644
--- a/compiler/docgen.nim
+++ b/compiler/docgen.nim
@@ -232,6 +232,7 @@ template declareClosures =
     of meExpected: k = errXExpected
     of meGridTableNotImplemented: k = errRstGridTableNotImplemented
     of meMarkdownIllformedTable: k = errRstMarkdownIllformedTable
+    of meIllformedTable: k = errRstIllformedTable
     of meNewSectionExpected: k = errRstNewSectionExpected
     of meGeneralParseError: k = errRstGeneralParseError
     of meInvalidDirective: k = errRstInvalidDirectiveX
diff --git a/compiler/lineinfos.nim b/compiler/lineinfos.nim
index 575be6196..105de1636 100644
--- a/compiler/lineinfos.nim
+++ b/compiler/lineinfos.nim
@@ -34,6 +34,7 @@ type
     errXExpected,
     errRstGridTableNotImplemented,
     errRstMarkdownIllformedTable,
+    errRstIllformedTable,
     errRstNewSectionExpected,
     errRstGeneralParseError,
     errRstInvalidDirectiveX,
@@ -106,6 +107,7 @@ const
     errXExpected: "'$1' expected",
     errRstGridTableNotImplemented: "grid table is not implemented",
     errRstMarkdownIllformedTable: "illformed delimiter row of a markdown table",
+    errRstIllformedTable: "Illformed table: $1",
     errRstNewSectionExpected: "new section expected $1",
     errRstGeneralParseError: "general parse error",
     errRstInvalidDirectiveX: "invalid directive: '$1'",