Skip to content

Instantly share code, notes, and snippets.

@iksose
Last active August 29, 2015 14:02
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 iksose/feeb9693d5d45a234095 to your computer and use it in GitHub Desktop.
Save iksose/feeb9693d5d45a234095 to your computer and use it in GitHub Desktop.
atom angular.js atom syntax
{
"match": "(?<!\\.)\\b(.forEach|.then)(?!\\s*:)\\b",
"name": "entity.name.function.js"
},
// matches .then & .forEach
{
"match": "(?<=\\).)(t(he(n)))\\b",
"name": "entity.name.function.js"
}
// matches ().then & ().catch
{
"match": "(?<!\\.)\\b(.catch)(?!\\s*:)\\b",
"name": "variable.language.js"
}
// makes .catch red
{
"match": "(?<=\\).)(c(atc(h)))\\b",
"name": "variable.language.js"
}
// makes ().catch red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment