Skip to content

Instantly share code, notes, and snippets.

@tracyloisel
Created February 7, 2017 09:05
Show Gist options
  • Save tracyloisel/657276abb07eecd8164253b36fd6ebd2 to your computer and use it in GitHub Desktop.
Save tracyloisel/657276abb07eecd8164253b36fd6ebd2 to your computer and use it in GitHub Desktop.
add new ruby configuration to atom package goto-definition
Ruby:
regex: [
"(^|\\s)class\\s+{word}(\\s|$)"
"(^|\\s)module\\s+{word}(\\s|$)"
"(^|\\s)def\\s+(?:self\\.)?{word}\\s*\\(?"
"(^|\\s)define_method\\s+:?{word}\\s*\\(?"
"(^|\\s)scope\\s+:{word}\\s*\\(?"
"(^|\\s)attr_accessor\\s+:{word}(\\s|$)"
"(^|\\s)attr_reader\\s+:{word}(\\s|$)"
"(^|\\s)attr_writer\\s+:{word}(\\s|$)"
]
type: ["*.rb"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment