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.
This commit is contained in:
cn 2012-07-08 14:09:58 +02:00
parent b92c346681
commit a1886c8c18
1 changed files with 6 additions and 2 deletions

View File

@ -101,7 +101,7 @@
* idle noeat * idle noeat
:atom Idle :atom Idle
* idle noeat strings * maybe_function noeat strings
"after" kw "after" kw
"and" kw "and" kw
"andalso" kw "andalso" kw
@ -131,13 +131,17 @@
"when" kw "when" kw
"xor" kw "xor" kw
done done
"(" function recolormark noeat
":" module recolormark noeat ":" module recolormark noeat
"a-zA-Z0-9_@" atom "a-zA-Z0-9_@" atom
:module Module :module Module
* idle noeat * idle noeat
:maybe_function Idle
* idle noeat
" " maybe_function
"(" function recolormark noeat
:function Fun :function Fun
* idle noeat * idle noeat