summaryrefslogtreecommitdiff
path: root/sphinx/util
diff options
context:
space:
mode:
authorJeremy Maitin-Shepard <jeremy@jeremyms.com>2022-03-11 05:02:48 -0800
committerGitHub <noreply@github.com>2022-03-11 05:02:48 -0800
commit2307e9f171cef9195114a2a02f1e4496bf38c294 (patch)
tree7477bee06102710dbbfd4257ce77163d7fd1a8ee /sphinx/util
parentf3277570b72460290cf8649296385579bf61c44f (diff)
downloadsphinx-git-2307e9f171cef9195114a2a02f1e4496bf38c294.tar.gz
Update sphinx/util/cfamily.py
Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
Diffstat (limited to 'sphinx/util')
-rw-r--r--sphinx/util/cfamily.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/util/cfamily.py b/sphinx/util/cfamily.py
index 87c2d67b3..dd2bde032 100644
--- a/sphinx/util/cfamily.py
+++ b/sphinx/util/cfamily.py
@@ -135,9 +135,9 @@ class ASTCPPAttribute(ASTAttribute):
return "[[" + self.arg + "]]"
def describe_signature(self, signode: TextElement) -> None:
- signode.append(sphinx.addnodes.desc_sig_punctuation('[[', '[['))
- signode.append(sphinx.addnodes.desc_sig_keyword(self.arg, self.arg))
- signode.append(sphinx.addnodes.desc_sig_punctuation(']]', ']]'))
+ signode.append(addnodes.desc_sig_punctuation('[[', '[['))
+ signode.append(nodes.Text(self.arg, self.arg))
+ signode.append(addnodes.desc_sig_punctuation(']]', ']]'))
class ASTGnuAttribute(ASTBaseBase):