summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2023-06-06 07:53:21 +0300
committerGitHub <noreply@github.com>2023-06-06 06:53:21 +0200
commit2ab948ce53e3d9b80bf9b02644c8ec8991f34d0a (patch)
tree0382d24fc7fd4c09397bc56bf7dccc7ba5b19e42 /lib
parent0a212f97a5dd4d5dd1ea84f370bd27abe55a818e (diff)
downloadNim-2ab948ce53e3d9b80bf9b02644c8ec8991f34d0a.tar.gz
post expr blocks colon fix + correct grammar (#21983)
* post expr blocks colon fix + correct grammar

fixes #21982

* fix dochelpers

* this is remarkably common

* use head for unchained

* fix atlas

* final grammar fix
Diffstat (limited to 'lib')
-rw-r--r--lib/packages/docutils/dochelpers.nim2
-rw-r--r--lib/pure/pegs.nim4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/packages/docutils/dochelpers.nim b/lib/packages/docutils/dochelpers.nim
index b7cdd16d2..7b257ffff 100644
--- a/lib/packages/docutils/dochelpers.nim
+++ b/lib/packages/docutils/dochelpers.nim
@@ -288,7 +288,7 @@ proc match*(generated: LangSymbol, docLink: LangSymbol): bool =
         if g.`type` == d.name:
           onlyType = true  # only types, not names, are provided in `docLink`
       if onlyType:
-        result = g.`type` == d.name:
+        result = g.`type` == d.name
       else:
         if d.`type` != "":
           result = g.`type` == d.`type`
diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim
index 86ad9c0f6..11683bbff 100644
--- a/lib/pure/pegs.nim
+++ b/lib/pure/pegs.nim
@@ -1042,7 +1042,7 @@ template eventParser*(pegAst, handlers: untyped): (proc(s: string): int) =
       # by *mkHandlerTplts*.
       template mkDoEnter(hdPostf, s, pegNode, start) =
         when declared(`enter hdPostf`):
-          `enter hdPostf`(s, pegNode, start):
+          `enter hdPostf`(s, pegNode, start)
         else:
           discard
       let hdPostf = ident(substr(strVal(pegKind), 2))
@@ -1053,7 +1053,7 @@ template eventParser*(pegAst, handlers: untyped): (proc(s: string): int) =
       # a grammar element of kind *pegKind*.
       template mkDoLeave(hdPostf, s, pegNode, start, length) =
         when declared(`leave hdPostf`):
-          `leave hdPostf`(s, pegNode, start, length):
+          `leave hdPostf`(s, pegNode, start, length)
         else:
           discard
       let hdPostf = ident(substr(strVal(pegKind), 2))