Skip to content

Commit

Permalink
support solidity contract (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chipe1 authored Jan 14, 2024
1 parent d9503c1 commit ede6a04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dumb-jump.el
Original file line number Diff line number Diff line change
Expand Up @@ -774,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 ede6a04

Please sign in to comment.