File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -621,18 +621,18 @@ or most optimal searcher."
621621
622622 ; ; nim
623623 (:type " variable" :supports (" ag" " grep" " rg" " git-grep" ) :language " nim"
624- :regex " (const|let|var)\\ s*JJJ\\ s*(=|:)[^=:\\ n]+"
625- :tests (" let test = 1234" " var test = 1234" " var test: Stat" " const test = 1234" )
624+ :regex " (const|let|var)\\ s*JJJ\\ *? \\ s*(=|:)[^=:\\ n]+"
625+ :tests (" let test = 1234" " var test = 1234" " var test: Stat" " const test = 1234" " const test* = 1234 " )
626626 :not (" if test == 1234:" ))
627627
628628 (:type " function" :supports (" ag" " grep" " rg" " git-grep" ) :language " nim"
629- :regex " (proc|func|macro|template)\\ s*`?JJJ`?\\ b\\ s*\\ \( "
630- :tests (" \t proc test(asdf)" " proc test()" " func test()" " macro test()" " template test()" )
629+ :regex " (proc|func|macro|template)\\ s*`?JJJ`?\\ b\\ *? \\ s*\\ \( "
630+ :tests (" \t proc test(asdf)" " proc test()" " func test()" " macro test()" " template test()" " proc test*() " )
631631 :not (" \t proc testnot(asdf)" " proc testnot()" ))
632632
633633 (:type " type" :supports (" ag" " grep" " rg" " git-grep" ) :language " nim"
634- :regex " type\\ s*JJJ\\ b\\ s*(\\ {[^}]+\\ })?\\ s*=\\ s*\\ w+"
635- :tests (" type test = object" " type test {.pure.} = enum" )
634+ :regex " type\\ s*JJJ\\ b\\ *? \\ s*(\\ {[^}]+\\ })?\\ s*=\\ s*\\ w+"
635+ :tests (" type test = object" " type test {.pure.} = enum" " type test* = ref object " )
636636 :not (" type testnot = object" ))
637637
638638 ; ; nix
You can’t perform that action at this time.
0 commit comments