Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ There is currently basic support for the following languages:
* Nix
* Objective-C
* OCaml
* Odin
* OpenSCAD
* Org mode
* Pascal
Expand Down
26 changes: 24 additions & 2 deletions dumb-jump.el
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,28 @@ or most optimal searcher."
(:type "type" :supports ("ag" "grep" "rg" "git-grep") :language "apex"
:regex "(class|interface)\\s*JJJ\\b"
:tests ("class test:" "public class test implements Something")
:not ("class testnot:" "public class testnot implements Something")))
:not ("class testnot:" "public class testnot implements Something"))

;; odin
(:type "variable" :supports ("ag" "grep" "rg" "git-grep") :language "odin"
:regex "\\s*\\bJJJ\\s*:\\s*([^=\\n]+\\s*:|:|[^=\\n]+\\s*=|=)"
:tests ("test :: struct"
"test ::enum"
"test:: union"
"test: : custom_type"
"test :: [2]f32"
"test : f32 : 20"
"test: i32 : 10"
"test := 20"
"test : f32 = 20"
"test: i32 = 10"
"test: i32= 10"
"test :i32= 10"
"test :: proc()"
"test ::proc() {"
"test:: proc(a: i32) -> i32 {"
"test::proc{}"
"test: :proc \"contextless\" {}")))


"List of regex patttern templates organized by language and type to use for generating the grep command."
Expand Down Expand Up @@ -1686,7 +1707,8 @@ or most optimal searcher."
(:language "hcl" :ext "tf" :agtype "terraform" :rgtype "tf")
(:language "hcl" :ext "tfvars" :agtype "terraform" :rgtype nil)
(:language "apex" :ext "cls" :agtype nil :rgtype nil)
(:language "apex" :ext "trigger" :agtype nil :rgtype nil))
(:language "apex" :ext "trigger" :agtype nil :rgtype nil)
(:language "odin" :ext "odin" :agtype nil :rgtype nil))

"Mapping of programming language(s) to file extensions."
:group 'dumb-jump
Expand Down