vs-code-cython icon indicating copy to clipboard operation
vs-code-cython copied to clipboard

Syntax error for fused types when using complex numbers

Open jrenaud90 opened this issue 1 year ago • 0 comments

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

jrenaud90 avatar Jul 27 '23 09:07 jrenaud90