[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] branch master updated: improve parsing of type declaration
From: |
gnunet |
Subject: |
[taler-docs] branch master updated: improve parsing of type declaration literals |
Date: |
Wed, 22 Jul 2020 17:26:16 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository docs.
The following commit(s) were added to refs/heads/master by this push:
new 48f5d79 improve parsing of type declaration literals
48f5d79 is described below
commit 48f5d798083fa18fe0a7ea40c02f7f311a68cfdf
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Wed Jul 22 20:56:11 2020 +0530
improve parsing of type declaration literals
---
_exts/typescriptdomain.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/_exts/typescriptdomain.py b/_exts/typescriptdomain.py
index 44e30f7..ce21b3b 100644
--- 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:
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-docs] branch master updated: improve parsing of type declaration literals,
gnunet <=