Skip to content

Commit

Permalink
Add test for #270
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh committed Nov 28, 2016
1 parent 2a58456 commit e043a6a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/syntax_test_issues_OLD.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,30 @@ return a ? a*a : 0;
// ^ constant.other.object.key punctuation.separator.key-value
// ^ constant.numeric
// ^ punctuation.terminator.statement


/**
* https://github.com/babel/babel-sublime/issues/270
*/

class Foo {
//^^^ meta.class storage.type.class
// ^^^ meta.class entity.name.class
// ^ meta.class meta.brace.curly.begin
bar = baz::map(
//^^^ meta.class.property variable.other.property
// ^ meta.class.property keyword.operator.assignment
// ^^^ meta.class.property variable.other.readwrite
// ^ meta.class.property meta.flowtype.annotation keyword.operator.flowtype.annotation
// ^ meta.class.property meta.flowtype.annotation keyword.operator.flowtype.other
// ^^^ meta.class.property meta.flowtype.annotation variable.other.flowtype
// ^ meta.class.property meta.flowtype.annotation punctuation.section.flowtype.begin
thing => 1
// ^^^^^ meta.class.property meta.flowtype.annotation variable.other.flowtype
// ^^ meta.class.property meta.flowtype.annotation meta.flowtype.function keyword.operator.flowtype
);
constructor() {}
//^^^^^^^^^^^ meta.class.property meta.flowtype.annotation meta.flowtype.function variable.other.flowtype
// ^ meta.class.property meta.flowtype.annotation punctuation.section.flowtype.begin
// ^ meta.class.property meta.flowtype.annotation punctuation.section.flowtype.end
}

0 comments on commit e043a6a

Please sign in to comment.