Skip to content

Commit

Permalink
Merge branch 'master' into tramp
Browse files Browse the repository at this point in the history
  • Loading branch information
jacktasia authored May 14, 2024
2 parents d663d28 + ede6a04 commit aaea32e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1.1.1
with:
python-version: '3.7.16'
python-version: '3.7'
architecture: 'x64'
- uses: purcell/setup-emacs@master
with:
Expand Down
57 changes: 18 additions & 39 deletions dumb-jump.el
Original file line number Diff line number Diff line change
Expand Up @@ -418,45 +418,20 @@ or most optimal searcher."

;; clojure
(:type "variable" :supports ("ag" "grep" "rg" "git-grep") :language "clojure"
:regex "\\(def\\s+JJJ\\j"
:tests ("(def test (foo)"))

(:type "function" :supports ("ag" "grep" "rg" "git-grep") :language "clojure"
:regex "\\(defn-?\\s+JJJ\\j"
:tests ("(defn test [foo]" "(defn- test [foo]")
:not ("(defn test? [foo]" "(defn- test? [foo]"))

(:type "function" :supports ("ag" "grep" "rg" "git-grep") :language "clojure"
:regex "\\(defmacro\\s+JJJ\\j"
:tests ("(defmacro test [foo]"))

(:type "function" :supports ("ag" "grep" "rg" "git-grep") :language "clojure"
:regex "\\(deftask\\s+JJJ\\j"
:tests ("(deftask test [foo]"))

(:type "type" :supports ("ag" "grep" "rg" "git-grep") :language "clojure"
:regex "\\(deftype\\s+JJJ\\j"
:tests ("(deftype test [foo]"))

(:type "type" :supports ("ag" "grep" "rg" "git-grep") :language "clojure"
:regex "\\(defmulti\\s+JJJ\\j"
:tests ("(defmulti test fn"))

(:type "type" :supports ("ag" "grep" "rg" "git-grep") :language "clojure"
:regex "\\(defmethod\\s+JJJ\\j"
:tests ("(defmethod test type"))

(:type "type" :supports ("ag" "grep" "rg" "git-grep") :language "clojure"
:regex "\\(definterface\\s+JJJ\\j"
:tests ("(definterface test (foo)"))

(:type "type" :supports ("ag" "grep" "rg" "git-grep") :language "clojure"
:regex "\\(defprotocol\\s+JJJ\\j"
:tests ("(defprotocol test (foo)"))

(:type "type" :supports ("ag" "grep" "rg" "git-grep") :language "clojure"
:regex "\\(defrecord\\s+JJJ\\j"
:tests ("(defrecord test [foo]"))
:regex "\\(def.*\ JJJ\\j"
:tests ("(def test (foo)"
"(defn test [foo]"
"(defn ^:some-data test [foo]"
"(defn- test [foo]"
"(defmacro test [foo]"
"(deftask test [foo]"
"(deftype test [foo]"
"(defmulti test fn"
"(defmethod test type"
"(definterface test (foo)"
"(defprotocol test (foo)"
"(defrecord test [foo]"
"(deftest test"))

;; coffeescript
(:type "function" :supports ("ag" "grep" "rg" "git-grep") :language "coffeescript"
Expand Down Expand Up @@ -799,6 +774,10 @@ or most optimal searcher."
:regex "error\\s*JJJ\\s*\\\("
:tests ("error test();" "error test (uint x)" "error test(uint x, address y)"))

(:type "contract" :supports ("ag" "grep" "rg" "git-grep") :language "solidity"
:regex "contract\\s*JJJ\\s*(is|\\\{)"
:tests ("contract test{" "contract test {" "contract test is foo"))

;; R
(:type "variable" :supports ("ag" "grep" "rg" "git-grep") :language "r"
:regex "\\bJJJ\\s*=[^=><]" :tests ("test = 1234") :not ("if (test == 1234)"))
Expand Down

0 comments on commit aaea32e

Please # to comment.