 mamegoma
Member
|
Hi,
I wrote my own scheme for the Scala language, but am now stuck when it comes to the lexer.
I assume I’ll have to make my own as well? I’m currently using the one for Python, which works, but… meh.
I searched around here and google but didn’t really get anywhere, can someone point me to some info about writing a custom lexer?
Thanks!
|
 simon
Key Master
|
I’m not that familiar with Scala, but it looks like someone’s already created a Scintilla lexer for scala here:
http://www.scala-lang.org/node/7558
This may work better than adapting Python or another. You can file an issue here to see if this support can be integrated in the future:
http://code.google.com/p/pnotepad/issues/entry
|
 Nux
Member
|
Hi, Simon.
How could I add a new lexer to PN (I use 2.3)? Can I just compile some simple program and somehow reference it in schemedef/scheme? Or should I just compile and rename it to [my language].lexer? Or would I have to recompile and overwrite SciLexer.dll? Any docs / pointers on that?
BTW. Does lexer tag behavior differ in .scheme and .schemedef? Does schemedef by default use customscheme.lexer or something like that? When is customscheme.lexer used anyway?
|