summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rw-r--r--Tools/c-analyzer/c_parser/parser/_regexes.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tools/c-analyzer/c_parser/parser/_regexes.py b/Tools/c-analyzer/c_parser/parser/_regexes.py
index 5695daf..c1a8ab3 100644
--- a/Tools/c-analyzer/c_parser/parser/_regexes.py
+++ b/Tools/c-analyzer/c_parser/parser/_regexes.py
@@ -72,6 +72,7 @@ _KEYWORD = textwrap.dedent(r'''
long |
float |
double |
+ _Complex |
void |
struct |
@@ -122,6 +123,16 @@ SIMPLE_TYPE = textwrap.dedent(rf'''
(?: signed | unsigned ) # implies int
|
(?:
+ (?: (?: float | double | long\s+double ) \s+ )?
+ _Complex
+ )
+ |
+ (?:
+ _Complex
+ (?: \s+ (?: float | double | long\s+double ) )?
+ )
+ |
+ (?:
(?: (?: signed | unsigned ) \s+ )?
(?: (?: long | short ) \s+ )?
(?: char | short | int | long | float | double )