This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 238
JavaScript is broken #183
Labels
Comments
linguist/issues/2530 |
Looks like another case where strings aren't given enough priority. |
Fortunately, const { a, b } = f() Having said this, export function* find (path, hook = _ => _) {
const root = join(process.cwd(), path)
return hook((yield fs.stat(path))
.isDirectory() ? yield resolve(root) : root)
function* resolve (root) {
for (const file of function* () {
for (const ext of Object.keys(jsVariants))
for (const name of ["Flyfile", "flyfile"])
yield join(root, `${name}${ext}`)
}()) try { if (yield fs.stat(file)) return file } catch (_) {}
throw { code: "ENOENT" }
}
} |
Yeah, that's been fixed - Linguist just needs to update to a commit that has it. |
Interestingly, putting the bracket on a newline breaks highlighting in a different way... |
😭 |
Another one that has been broken for a while (at least in Atom), which I also forgot to report is when using default parameters: export function filter (pkg, load, blacklist = [], bind = "babel/register") { |
Yeah, I'm looking at the function-params regex, and it's pretty basic. |
winstliu
added a commit
that referenced
this issue
Aug 1, 2015
In addition, add a constructor regex -Fixes #183
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi. JavaScript the syntax highlighting is broken and this is affecting me in both Atom and GitHub code viewer. Please see the attached images.
github-linguist/linguist#2530
The text was updated successfully, but these errors were encountered: