Skip to content

Commit

Permalink
ungreedy no equal sign
Browse files Browse the repository at this point in the history
  • Loading branch information
jacktasia committed Mar 3, 2016
1 parent 5cb4da6 commit ec1720a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dumb-jump.el
Expand Up @@ -123,7 +123,7 @@

;; python
(:type "variable" :language "python"
:regex "\\s*JJJ\\s*=[^=]+$" :tests ("test = 1234") :not ("if test == 1234:"))
:regex "\\s*JJJ\\s*=[^=]+?$" :tests ("test = 1234") :not ("if test == 1234:"))

(:type "function" :language "python"
:regex "def\\s*JJJ\\s*\\\("
Expand All @@ -135,7 +135,7 @@

;; ruby
(:type "variable" :language "ruby"
:regex "\\s*JJJ\\s*=[^=]+$" :tests ("test = 1234") :not ("if test == 1234"))
:regex "\\s*JJJ\\s*=[^=]+?$" :tests ("test = 1234") :not ("if test == 1234"))

(:type "function" :language "ruby"
:regex "\\bdef\\s*JJJ\\s*\\\("
Expand All @@ -156,7 +156,7 @@

;; go
(:type "variable" :language "go"
:regex "\\s*\\bJJJ\\s*=[^=]+$" :tests ("test = 1234") :not ("if test == 1234 {"))
:regex "\\s*\\bJJJ\\s*=[^=]+?$" :tests ("test = 1234") :not ("if test == 1234 {"))

(:type "variable" :language "go"
:regex "\\s*\\bJJJ\\s*:=\\s*" :tests ("test := 1234"))
Expand All @@ -175,7 +175,7 @@

;; javascript
(:type "variable" :language "javascript"
:regex "\\s*\\bJJJ\\s*=[^=]+$" :tests ("test = 1234") :not ("if (test === 1234)"))
:regex "\\s*\\bJJJ\\s*=[^=]+?$" :tests ("test = 1234") :not ("if (test === 1234)"))

(:type "variable" :language "javascript"
:regex "\\bfunction\\b[^\\(]*\\\(\\s*[^\\)]*JJJ\\s*,?\\s*\\\)?"
Expand Down

0 comments on commit ec1720a

Please sign in to comment.