Skip to content

show, as, deferred, and hide aren't highlighted in newline without trailing space in previous line #103

@triallax

Description

@triallax

I'm sorry if the title isn't very clear, but I couldn't come up with a better description. Here's an example:

// This works (minus sign represents space using ':set list')
import 'foo.dart' 
show Foo;
import 'bar.dart' 
hide Bar;
import 'baz.dart' 
as baz;
import 'bat.dart' 
deferred as bat;
export 'foo.dart' 
show Foo;
export 'bar.dart' 
hide Bar;

// This doesn't ('as' is still highlighted for some reason,
// perhaps because it's considered an operator)
import 'foo.dart'
show Foo;
import 'bar.dart'
hide Bar;
import 'baz.dart'
as baz;
import 'bat.dart'
deferred as bat;
export 'foo.dart'
show Foo;
export 'bar.dart'
hide Bar;

// This also doesn't work (even with trailing space)
import 
'foo.dart' show Foo;
import
'bar.dart' show Bar;

Bug demonstration

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