Packages: [D] Ternary statement incorrectly marks as syntax error

Created on 21 Oct 2020  路  2Comments  路  Source: sublimehq/Packages

Description

The changes to syntax definitions in ST4 have greatly improved parsing D code. However, ternary statements now mark as though they're a syntax error.

Steps to reproduce

Type this code into a D source file:

void func() {
  int a = b ? c : d;
}

Result:

Image

Environment

  • Build: 4088
  • Operating system and version: Elementary OS 5.1
  • Linux Desktop Environment and/or Window Manager: Pantheon/Gala
bug

Most helpful comment

I've transferred the issue.

All 2 comments

Thanks for submitting a bug report!

The default syntaxes are open source, and we track issues with them at https://github.com/sublimehq/Packages/issues.

If you could, please open an issue there with this content.

I've transferred the issue.

Was this page helpful?
0 / 5 - 0 ratings