Error compiling shader

Hello, when compiling a shader in my content project, I’m getting the following error message:

Unexpected token 'Z' found. Expected CloseBracket

This shader compiles fine under XNA. Below you can see the technique block where it’s getting the error. The error is happening on the ZFunc line:

technique NormalAlphaColorPassNoZ
    pass P0
        VertexShader = compile vs_4_0_level_9_1 ColorVS();
        PixelShader  = compile ps_4_0_level_9_1 ColorPS();

        /* // Alpha test
        AlphaRef = 1;
        AlphaTestEnable = true;
        AlphaFunc = GreaterEqual; */

        // Alpha blending
        AlphaBlendEnable = true;
        SrcBlend = SrcAlpha;
        DestBlend = InvSrcAlpha;

        CullMode = None;

        ZEnable = false;
        ZFunc = LessEqual;
        ZWriteEnable = false;

Any ideas what might be going wrong here? How to work around it?

Thank you!

EDIT: When I comment out the ZFunc = LessEqual line, the shader compiles successfully. I wonder why it doesn’t recognize ZFunc. Has anyone else had success compiling shaders that set ZFunc?

I see there’s an open bug on this issue: