vs-code-cython
vs-code-cython copied to clipboard
Syntax error for fused types when using complex numbers
The syntax highlighter flags the word "complex" in the example below as a problem with the message "Statements must be separated by newlines or semicolons". However the syntax is correct. This does not occur if that line is replaced by another two word type like "unsigned int".
# Define fused type to handle both float and complex-valued
ctypedef fused double_numeric:
double
double complex