Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elifdef/elifndef does not parse #671

Open
1 task done
rouing opened this issue Dec 31, 2024 · 0 comments
Open
1 task done

elifdef/elifndef does not parse #671

rouing opened this issue Dec 31, 2024 · 0 comments

Comments

@rouing
Copy link

rouing commented Dec 31, 2024

Checklist

  • This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"

The code with a problem is:

void startup_sound() {
#ifndef LITE_VERSION
  #ifdef BUZZ_PIN
    // Bip M5 just because it can. Does not bip if splashscreen is bypassed
    _tone(5000, 50);
    delay(200);
    _tone(5000, 50);
  /*  2fix: menu infinite loop */
  #elifdef HAS_NS4168_SPKR
    // play a boot sound
    if(SD.exists("/boot.wav")) playAudioFile(&SD, "/boot.wav");
    else if(LittleFS.exists("/boot.wav")) playAudioFile(&LittleFS, "/boot.wav");
  #endif
#endif
}

elifdef and elifndef directive are ignored

It looks like:

image

It should look like:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant