Skip to content

Commit

Permalink
Perl: Support the new syntax of function declarations (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
vifon authored and jacktasia committed Nov 29, 2018
1 parent 720cf1f commit bb888a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dumb-jump.el
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ or most optimal searcher."

;; perl
(:type "function" :supports ("ag" "grep" "rg" "git-grep") :language "perl"
:regex "sub\\s*JJJ\\s*\\\{"
:tests ("sub test{" "sub test {"))
:regex "sub\\s*JJJ\\s*(\\{|\\()"
:tests ("sub test{" "sub test {" "sub test(" "sub test ("))

(:type "variable" :supports ("ag" "grep" "rg" "git-grep") :language "perl"
:regex "JJJ\\s*=\\s*"
Expand Down

0 comments on commit bb888a8

Please sign in to comment.