Fix group reference (with capital letters (#19196)

in group name)
This commit is contained in:
Andrey Makarov 2021-12-20 23:10:15 +03:00 • committed by GitHub
commit 19898e1225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 45 additions and 2 deletions

View file

@ -36,6 +36,7 @@ Note that `proc` can be used in postfix form: `binarySearch proc`_.
Ref. type like G_ and `type G`_ and `G[T]`_ and `type G*[T]`_.
Group ref. with capital letters works: fN11_ or fn11_
]##
include ./utils_helpers
@ -77,6 +78,11 @@ proc fn8*(): auto =
func fn9*(a: int): int = 42 ## comment
func fn10*(a: int): int = a ## comment
# Note capital letter N will be handled correctly in
# group references like fN11_ or fn11_:
func fN11*() = discard
func fN11*(x: int) = discard
# bug #9235
template aEnum*(): untyped =