Skip to content

Instantly share code, notes, and snippets.

@iksose
Last active August 29, 2015 14:02
Show Gist options
  • 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