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

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

[nongnu] elpa/julia-mode a7caf75c16 04/14: Simplify one-line, support @a


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode a7caf75c16 04/14: Simplify one-line, support @annotations for all fns
Date: Wed, 12 Jul 2023 04:00:11 -0400 (EDT)

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

    Simplify one-line, support @annotations for all fns
---
 julia-mode.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/julia-mode.el b/julia-mode.el
index 03ebb7a343..3d1fb9aa50 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -703,10 +703,10 @@ Return nil if point is not in a function, otherwise 
point."
 ;;; IMENU
 (defvar julia-imenu-generic-expression
   ;; don't use syntax classes, screws egrep
-  '(("Function (_)" "^[ \t]*function[ \t]+\\(_.*?\\)\\( +end\\|$\\)" 1)
-    ("Function (_)" "^[ \t]*\\(\\(@.+ \\)?_[!\._a-zA-Z0-9]+\(.*\).*\\) = " 1)
-    ("Function" "^[ \t]*function[ \t]+\\([^_].*?\\)\\( +end\\|$\\)" 1)
-    ("Function" "^[ \t]*\\(\\(@.+ 
\\)?\(?<!_\)[!\.a-zA-Z0-9][!\._a-zA-Z0-9]*\(.*\).*\\) =" 1)
+  '(("Function (_)" "^[ \t]*\\(@.+ \\)?function[ \t]+\\(_.*?\\)\\( 
+end\\|$\\)" 2)
+    ("Function (_)" "^[ \t]*\\(@.+ \\)?\\(_[!\._a-zA-Z0-9]+\(.*\).*\\) = " 2)
+    ("Function" "^[ \t]*\\(@.+ \\)?function[ \t]+\\([^_].*?\\)\\( +end\\|$\\)" 
2)
+    ("Function" "^[ \t]*\\(@.+ 
\\)?\\([!\.a-zA-Z0-9][!\._a-zA-Z0-9]*\(.*\).*\\) = " 2)
     ("Const" "^[ \t]*const \\([^ \t\n]*\\) *= " 1)
     ("Struct" "^[ \t]*\\(\\(mutable \\)*struct [^ \t\n]*\\)" 1)
     ("Require" " *\\(\\brequire\\)(\\([^ \t\n)]*\\)" 2)



reply via email to

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