Skip to content

Proposal to improve syntax highlightingΒ #29

@LeadcodeDev

Description

@LeadcodeDev

Good evening, I am returning to you with two suggestions for improving syntax highlighting:

If case

The word case in this example allows you to perform a type comparison by casting the variable according to its type.
Therefore, I would expect the keyword case to have the same highlighting as void or if.
Image

Reproduction and testing

final String? element = 'Hello World';

if (element case String value) {
  print(value);
}

final

The keyword final is reserved, so I expect it to have the same syntax highlighting as void.
Image

Reproduction and testing

final String element = 'Hello World';

final class Foo {
  final String element = 'Hello World';
}

override

I expect @ to have the same colour as override.
Image

Reproduction and testing

abstract interface class AbstractClass {
  String get element;
}

final class MyClass implements AbstractClass {
  @override
  String get element = 'Hello World;
}

Thanks a lot πŸ‘€

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions