Skip to content

Commit 8d7b6aa

Browse files
committed
Fixed linting errors
1 parent b47be71 commit 8d7b6aa

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

sphinx/domains/cpp/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
import re
65
from types import NoneType
76
from typing import TYPE_CHECKING
87

sphinx/util/cfamily.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
from __future__ import annotations
44

5-
import regex as re
65
from copy import deepcopy
76
from typing import TYPE_CHECKING
87

8+
import regex as re
99
from docutils import nodes
1010

1111
from sphinx import addnodes
@@ -27,17 +27,17 @@
2727
anon_identifier_re = re.compile(r'(@[a-zA-Z0-9_])[a-zA-Z0-9_]*\b')
2828
identifier_re = re.compile(
2929
r"""
30-
( # This 'extends' _anon_identifier_re with the ordinary identifiers,
31-
# make sure they are in sync.
32-
(~?\b[a-zA-Z_]) # ordinary identifiers
33-
| \p{XID_Start} # Unicode-allowed starting characters for identifiers
34-
| \p{ID_Compat_Math_Start} # Unicode-allowed starting mathematical characters for identifiers
35-
| (@[a-zA-Z0-9_]) # our extension for names of anonymous entities
30+
( # This 'extends' _anon_identifier_re with the ordinary identifiers,
31+
# make sure they are in sync.
32+
(~?\b[a-zA-Z_]) # ordinary identifiers
33+
| \p{XID_Start} # Unicode-allowed starting characters for identifiers
34+
| \p{ID_Compat_Math_Start} # Unicode-allowed starting math characters for identifiers
35+
| (@[a-zA-Z0-9_]) # our extension for names of anonymous entities
3636
)
3737
(
38-
[a-zA-Z0-9_] # ordinary identifiers
39-
| \p{XID_Continue} # Unicode-allowed continuing characters for identifiers
40-
| \p{ID_Compat_Math_Continue} # Unicode-allowed continuing mathematical characters for identifiers
38+
[a-zA-Z0-9_] # ordinary identifiers
39+
| \p{XID_Continue} # Unicode-allowed continuing characters for identifiers
40+
| \p{ID_Compat_Math_Continue} # Unicode-allowed continuing math characters for identifiers
4141
)*
4242
""",
4343
flags=re.VERBOSE,

0 commit comments

Comments
 (0)