In the Clean language, identifiers consist of either all 'normal' characters ([a-zA-Z][a-zA-Z0-9_`]*
) or all 'funky' characters ([~!@#$%^&*-=+:<>,./?|]
and perhaps more). What I would like is a iskeyword
setting that recognises this. To clarify some examples:
<.>
should be one wordx>y
should be split asx
,>
,y
x.y
should be split asx
,.
,y
Is it possible to write an iskeyword
that does this properly? I have seen this discussion where the end result seems to be it is not possible, but this is a slightly different use case and something might have changed since 2006.