Skip to content

Commit e2ae287

Browse files
committed
C, add fract and accum
1 parent c5962b7 commit e2ae287

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sphinx/domains/c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
|__float80|_Float64x|__float128|_Float128|__ibm128
112112
|__fp16
113113
# Fixed-point, extension
114-
|(_Sat\s+)?((signed|unsigned)\s+)?((short|long|long\s+long)\s+)?(_Fract|_Accum)
114+
|(_Sat\s+)?((signed|unsigned)\s+)?((short|long|long\s+long)\s+)?(_Fract|fract|_Accum|accum)
115115
# Integer types that could be prefixes of the previous ones
116116
# ---------------------------------------------------------
117117
|((signed|unsigned)\s+)?(short|long\s+long|long)

tests/test_domain_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def signed(t):
318318
# -----------------------------
319319
# https://gcc.gnu.org/onlinedocs/gcc/Fixed-Point.html#Fixed-Point
320320
for sat in ('', '_Sat '):
321-
for t in ('_Fract', '_Accum'):
321+
for t in ('_Fract', 'fract', '_Accum', 'accum'):
322322
for size in ('short ', '', 'long ', 'long long '):
323323
for tt in signed(size + t):
324324
yield sat + tt

0 commit comments

Comments
 (0)