emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/julia-mode 7e8947d749 01/14: Add one-line fns to imenu, ty


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 7e8947d749 01/14: Add one-line fns to imenu, type -> struct, const requires =
Date: Wed, 12 Jul 2023 04:00:09 -0400 (EDT)

branch: elpa/julia-mode
commit 7e8947d749cdf5258b9b950b89edf351169c4ab7
Author: Malte Sandstede <malte@sandstede.com>
Commit: GitHub <noreply@github.com>

    Add one-line fns to imenu, type -> struct, const requires =
---
 julia-mode.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/julia-mode.el b/julia-mode.el
index 287b4c3236..211ef2ac99 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -705,10 +705,11 @@ Return nil if point is not in a function, otherwise 
point."
   ;; don't use syntax classes, screws egrep
   '(("Function (_)" "[ \t]*function[ \t]+\\(_[^ \t\n]*\\)" 1)
     ("Function" "^[ \t]*function[ \t]+\\([^_][^\t\n]*\\)" 1)
-    ("Const" "[ \t]*const \\([^ \t\n]*\\)" 1)
-    ("Type"  "^[ \t]*[a-zA-Z0-9_]*type[a-zA-Z0-9_]* \\([^ \t\n]*\\)" 1)
-    ("Require"      " *\\(\\brequire\\)(\\([^ \t\n)]*\\)" 2)
-    ("Include"      " *\\(\\binclude\\)(\\([^ \t\n)]*\\)" 2)
+    ("Function" "^[ \t]*\\(\\(@.+ \\)?[_a-zA-Z0-9]+\(.*\)\\) *= " 1)
+    ("Const" "^[ \t]*const \\([^ \t\n]*\\) *= " 1)
+    ("Struct" "^[ \t]*\\(\\(mutable \\)*struct [^ \t\n]*\\)" 1)
+    ("Require" " *\\(\\brequire\\)(\\([^ \t\n)]*\\)" 2)
+    ("Include" " *\\(\\binclude\\)(\\([^ \t\n)]*\\)" 2)
     ;; ("Classes" "^.*setClass(\\(.*\\)," 1)
     ;; ("Coercions" "^.*setAs(\\([^,]+,[^,]*\\)," 1) ; show from and to
     ;; ("Generics" "^.*setGeneric(\\([^,]*\\)," 1)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]