taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 48f5d798083fa18fe0a7ea40c02f7f311a68cfdf
parent 2eeefb197b860ffee00ae6b1aa676e07c1677dee
Author: Florian Dold <florian.dold@gmail.com>
Date:   Wed, 22 Jul 2020 20:56:11 +0530

improve parsing of type declaration literals

Diffstat:
M_exts/typescriptdomain.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/_exts/typescriptdomain.py b/_exts/typescriptdomain.py @@ -388,7 +388,9 @@ class LinkingHtmlFormatter(HtmlFormatter): if tok_getprop(tok, "is_identifier"): if xref.startswith('"'): return value - if xref in ("number", "object", "string", "boolean", "any", "true", "false", "null"): + if re.match("^[0-9]+$", xref) is not None: + return value + if xref in ("number", "object", "string", "boolean", "any", "true", "false", "null", "undefined", "Array"): return value if xref is None: