branch: elpa/elixir-mode
commit 8ac787fd5bb32023a6442851372d3f4ddc671aa9
Merge: 6c7f2b2b35 d75664d7c0
Author: Victor Oliveira Nascimento 
<[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #504 from elixir-editors/add-guards-to-easy-menu
    
    Add guards to easymenu
---
 elixir-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/elixir-mode.el b/elixir-mode.el
index c63f783db6..7a424e69c4 100644
--- a/elixir-mode.el
+++ b/elixir-mode.el
@@ -70,6 +70,8 @@
     ("Private Functions" "^\\s-*defp[ 
\n\t]+\\([a-z0-9_!\\?]+\\)\\(([^)]*)\\)*.*" 1)
     ("Public Macros" "^\\s-*defmacro[ 
\n\t]+\\([a-z0-9_!\\?]+\\)\\(([^)]*)\\)*.*" 1)
     ("Private Macros" "^\\s-*defmacrop[ 
\n\t]+\\([a-z0-9_!\\?]+\\)\\(([^)]*)\\)*.*" 1)
+    ("Public Guards" "^\\s-*defguard[ 
\n\t]+\\([a-z0-9_!\\?]+\\)\\(([^)]*)\\)*.*" 1)
+    ("Private Guards" "^\\s-*defguardp[ 
\n\t]+\\([a-z0-9_!\\?]+\\)\\(([^)]*)\\)*.*" 1)
     ("Delegates" "^\\s-*defdelegate[ \n\t]+\\([a-z0-9_]+\\)\\(([^)]*)\\)*.*" 1)
     ("Overridables" "^\\s-*defoverridable[ 
\n\t]+\\([a-z0-9_]+\\)\\(([^)]*)\\)*.*" 1)
     ("Tests" "^\\s-*test[ \t\n]+\"?\\(:?[a-z0-9_@+() \t-]+\\)\"?[ \t\n]+.*" 1))

Reply via email to