Skip to content

Commit

Permalink
basic ruby support - closes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
jacktasia committed Feb 11, 2016
1 parent 3e8a1c5 commit bc10636
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -18,6 +18,7 @@ There is currently basic support for the following languages:
* Python
* Go
* PHP
* Ruby

If you have any issues with the existing languages, or you want support for another one, then please open an issue. PRs are also welcome.

Expand Down
9 changes: 9 additions & 0 deletions dumb-jump.el
Expand Up @@ -119,6 +119,14 @@
:regex "class\\s*JJJ\\s*\\\(?"
:tests ("class test(object):"))

;; ruby
(:type "variable" :language "ruby"
:regex "\\s*JJJ\\s*=\\s*" :tests ("test = 1234"))

(:type "function" :language "ruby"
:regex "\\bdef\\s*JJJ\\s*\\\("
:tests ("def test(asdf)" "def test()"))

;; php
(:type "function" :language "php"
:regex "function\\s*JJJ\\s*\\\("
Expand Down Expand Up @@ -175,6 +183,7 @@ and type to use for generating the grep command"
(:language "javascript" :ext "html")
(:language "php" :ext "php")
(:language "php" :ext "inc")
(:language "ruby" :ext "rb")
(:language "python" :ext "py")
(:language "go" :ext "go"))
"Mapping of programming lanaguage(s) to file extensions"
Expand Down

0 comments on commit bc10636

Please sign in to comment.