From a1886c8c18999cb060f80e67b143b3df69f253cb Mon Sep 17 00:00:00 2001 From: cn Date: Sun, 8 Jul 2012 14:09:58 +0200 Subject: [PATCH] Erlang: allow keywords to be followed by a ( without being lit as function name A new rule skips whitespace after any non-keyword atom to search for a ( and highlights the current buffer as function name when found. --- erlang.jsf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/erlang.jsf b/erlang.jsf index 99f338e..5d5747c 100644 --- a/erlang.jsf +++ b/erlang.jsf @@ -101,7 +101,7 @@ * idle noeat :atom Idle - * idle noeat strings + * maybe_function noeat strings "after" kw "and" kw "andalso" kw @@ -131,13 +131,17 @@ "when" kw "xor" kw done - "(" function recolormark noeat ":" module recolormark noeat "a-zA-Z0-9_@" atom :module Module * idle noeat +:maybe_function Idle + * idle noeat + " " maybe_function + "(" function recolormark noeat + :function Fun * idle noeat