mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +01:00
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:
parent
b92c346681
commit
a1886c8c18
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user