I've emailed Simon directly about this, but got no reply, so I'm trying again here. I'd like to write a PN lexer for BBC BASIC, but it has unusual requirements: keywords do not (necessarily) need to be surrounded by whitespace. For example the following is legal syntax in BBC BASIC (although not encouraged!):
x = DEGACSCOSPI
where 'DEG', 'ACS', 'COS' and 'PI' are all separate keywords! Can a custom PN lexer handle this situation, and if so where can I find out how to write it?