mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 12: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
|
* 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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user