ironsheep / P2-vscode-extensions

VSCode support for SPIN/PASM for Propeller V1 and V2
MIT License
5 stars 2 forks source link

Flexspin conditional assembly not recognized and ends up polluting outline #25

Open Wuerfel21 opened 1 year ago

Wuerfel21 commented 1 year ago

and have you...

Version of Spin2 VScode Extension with the issue

whatever is current

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Hardware, Operating System, Operating System version, VSCode version

Hardware: A fresh potato OS Ver: OS/2 WARP

Description of problem

Try loading this file: https://github.com/Wuerfel21/usbnew/blob/master/usbnew.spin2

Outline goes wild image

Additional information

No response

ironsheep commented 1 year ago

Hmmm... new to me. When did FlexSpin start not requiring the #if vs if for conditional compilation?

Can you provide a link to documentation for these FlexSpin directives so I can figure out the scope of this work?

I may wait to fix this until we do another FlexSpin support feature add. I won't decide this until I see the doc's tho'

Wuerfel21 commented 1 year ago

#if and if are different features: https://github.com/totalspectrum/spin2cpp/blob/master/doc/spin.md#conditional-assembly