[gi-docgen/validate-links] Emit warning for invalid link fragments
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gi-docgen/validate-links] Emit warning for invalid link fragments
- Date: Tue, 25 May 2021 11:36:50 +0000 (UTC)
commit 4ad8f0f4995b74e3bdf53f0c671265f91fa72114
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue May 25 12:35:54 2021 +0100
Emit warning for invalid link fragments
If the fragment is not recognised, we should warn about it.
Fixes: #89
gidocgen/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gidocgen/utils.py b/gidocgen/utils.py
index e8a5b1f..86c2b90 100644
--- a/gidocgen/utils.py
+++ b/gidocgen/utils.py
@@ -68,7 +68,7 @@ LINK_RE = re.compile(
r'''
\[
(`)?
-
(?P<fragment>alias|class|const|ctor|enum|error|flags|func|id|iface|method|property|signal|struct|type|vfunc)
+ (?P<fragment>[\w]+)
@
(?P<endpoint>[\w\-_:\.]+)
(`)?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]