Skip to content

Instantly share code, notes, and snippets.

@tamzinblake
Created June 7, 2011 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamzinblake/1013135 to your computer and use it in GitHub Desktop.
Save tamzinblake/1013135 to your computer and use it in GitHub Desktop.
How errors pop out in my js-mode
// Showing how errors pop out in my js-mode standard indenting:
// (https://github.com/thomblake/js-mode)
// (courtesy of https://gist.github.com/357981 for the excellent examples)
// error in standard style
var a = "ape",
b = "bat",
c = "cat",
d = "dog"
e = "elf",
f = "fly",
g = "gnu",
h = "hat",
i = "ibu";
// error in comma-first style
var a = "ape"
, b = "bat"
, c = "cat"
, d = "dog"
e = "elf"
, f = "fly"
, g = "gnu"
, h = "hat"
, i = "ibu"
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment