-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #164 flow comment syntax breaks highlighting
- Loading branch information
gandm
committed
Apr 14, 2016
1 parent
ae4f42f
commit 609f5e7
Showing
4 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// SYNTAX TEST "source.js.jsx" | ||
|
||
const foo = function foo(a /* : string*/) /* {[key: string]: string} */ { | ||
// <- storage.type.js | ||
// <- storage.type.js | ||
//^^^ storage.type.js | ||
// ^^^ ^ ^^^^^^^^ ^^^^^ ^^ ^ ^^^^^^^^^ ^^ ^^^^^^ ^^^^^^^^ ^^^^^^^ ^^ meta.function.js | ||
// ^^^ ^^^ entity.name.function.js | ||
// ^ keyword.operator.assignment.js | ||
// ^^^^^^^^ storage.type.function.js | ||
// ^ punctuation.definition.parameters.begin.js | ||
// ^ variable.other.readwrite.js | ||
// ^^ ^ ^^^^^^^^ ^^ ^^^^^^ ^^^^^^^^ ^^^^^^^ ^^ comment.block.js | ||
// ^^ ^^ ^^ ^^ punctuation.definition.comment.js | ||
// ^ punctuation.definition.parameters.end.js | ||
// ^ meta.group.braces.curly | ||
// ^ meta.brace.curly.js | ||
return { | ||
//^^^^^^ ^ meta.group.braces.curly | ||
//^^^^^^ keyword.control.flow.js | ||
// ^ meta.brace.curly.js | ||
bar | ||
// ^^^ meta.group.braces.curly | ||
// ^^^ variable.other.readwrite.js | ||
} | ||
//^ meta.group.braces.curly | ||
//^ meta.brace.curly.js | ||
} | ||
// <- meta.group.braces.curly meta.brace.curly.js | ||
|
||
module.exports = exports = foo | ||
// <- support.type.object.module.js keyword.operator.accessor.js | ||
// <- support.type.object.module.js keyword.operator.accessor.js | ||
//^^^^^^^^^^^^ ^^^^^^^ support.type.object.module.js | ||
//^^^^^^^^^^^^ ^^^^^^^ keyword.operator.accessor.js | ||
// ^ ^ keyword.operator.assignment.js | ||
// ^^^ variable.other.readwrite.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters