Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jokeyrhyme/4f1a7580deb9f4727bd35f0e7953291a to your computer and use it in GitHub Desktop.
Save jokeyrhyme/4f1a7580deb9f4727bd35f0e7953291a to your computer and use it in GitHub Desktop.
sample code to trigger a weird colouring issue with the language-babel plugin for Atom
'use strict'
function looksFine () {}
function looksFineWithArgs (
first /* : string */,
second /* : number */
) /* : boolean */ {
const statementsLookGood = true
return false
}
/* ::
type Options = { [id:string]: string }
*/
function weirdSyntaxHighlight (
options /* : Options */
) /* : void */ {
const firstLettersOfEachLineAreWeird = true
return
}
@jokeyrhyme
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment