Skip to content

Commit 57440c7

Browse files
authored
Merge branch 'master' into master
2 parents 6915081 + f657254 commit 57440c7

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ There is currently basic support for the following languages:
5050
* Nix
5151
* Objective-C
5252
* OCaml
53+
* Odin
5354
* OpenSCAD
5455
* Org mode
5556
* Pascal

dumb-jump.el

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,28 @@ or most optimal searcher."
15731573
(:type "type" :supports ("ag" "grep" "rg" "git-grep") :language "apex"
15741574
:regex "(class|interface)\\s*JJJ\\b"
15751575
:tests ("class test:" "public class test implements Something")
1576-
:not ("class testnot:" "public class testnot implements Something")))
1576+
:not ("class testnot:" "public class testnot implements Something"))
1577+
1578+
;; odin
1579+
(:type "variable" :supports ("ag" "grep" "rg" "git-grep") :language "odin"
1580+
:regex "\\s*\\bJJJ\\s*:\\s*([^=\\n]+\\s*:|:|[^=\\n]+\\s*=|=)"
1581+
:tests ("test :: struct"
1582+
"test ::enum"
1583+
"test:: union"
1584+
"test: : custom_type"
1585+
"test :: [2]f32"
1586+
"test : f32 : 20"
1587+
"test: i32 : 10"
1588+
"test := 20"
1589+
"test : f32 = 20"
1590+
"test: i32 = 10"
1591+
"test: i32= 10"
1592+
"test :i32= 10"
1593+
"test :: proc()"
1594+
"test ::proc() {"
1595+
"test:: proc(a: i32) -> i32 {"
1596+
"test::proc{}"
1597+
"test: :proc \"contextless\" {}")))
15771598

15781599

15791600
"List of regex patttern templates organized by language and type to use for generating the grep command."
@@ -1731,7 +1752,8 @@ or most optimal searcher."
17311752
(:language "hcl" :ext "tf" :agtype "terraform" :rgtype "tf")
17321753
(:language "hcl" :ext "tfvars" :agtype "terraform" :rgtype nil)
17331754
(:language "apex" :ext "cls" :agtype nil :rgtype nil)
1734-
(:language "apex" :ext "trigger" :agtype nil :rgtype nil))
1755+
(:language "apex" :ext "trigger" :agtype nil :rgtype nil)
1756+
(:language "odin" :ext "odin" :agtype nil :rgtype nil))
17351757

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

0 commit comments

Comments
 (0)