Skip to content

Commit

Permalink
Tidy imenu; Function should be tied to start of line.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/ESS/trunk@5702 0bbaf3bd-34e0-0310-bf65-c717079852d4
  • Loading branch information
sje30 committed Aug 11, 2013
1 parent 28c139c commit 6d84704
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lisp/ess-julia.el
Original file line number Diff line number Diff line change
Expand Up @@ -462,20 +462,11 @@ to look up any doc strings."
(defvar julia-imenu-generic-expression
;; don't use syntax classes, screws egrep
'(("Function (_)" "[ \t]*function[ \t]+\\(_[^ \t\n]*\\)" 1)
("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)
;; ("Classes" "^.*setClass(\\(.*\\)," 1)
;; ("Coercions" "^.*setAs(\\([^,]+,[^,]*\\)," 1) ; show from and to
;; ("Generics" "^.*setGeneric(\\([^,]*\\)," 1)
;; ("Methods" "^.*set\\(Group\\|Replace\\)?Method(\"\\(.+\\)\"," 2)
;; ;;[ ]*\\(signature=\\)?(\\(.*,?\\)*\\)," 1)
;; ;;
;; ;;("Other" "^\\(.+\\)\\s-*<-[ \t\n]*[^\\(function\\|read\\|.*data\.frame\\)]" 1)
;; ("Package" "^.*\\(library\\|require\\)(\\(.*\\)," 2)
;; ("Data" "^\\(.+\\)\\s-*<-[ \t\n]*\\(read\\|.*data\.frame\\).*(" 1)))
))

(provide 'ess-julia)
Expand Down

0 comments on commit 6d84704

Please sign in to comment.