External Lexer question



  • So I’m attempting to write an external lexer (well kind of, but that’s a different story). I’ve looked at some other examples (the GEDCOM lexer, Gmod Lua Lexer, etc) and understand how they work and the general setup for getting an external lexer working.

    My question is regarding styling. In the xml file associated with the external lexer, there are “WordsStyle” tags that need to be defined that have a styleID, font color, size, etc so that the external lexer Lex() function can use these styles. Is there a way to generate these styles within the lexer itself, meaning you can possibly have a varying number of styles? I know there isn’t a huge number of people that deal with external lexers, so hopefully someone can help :)



  • @dail said:

    So I’m attempting to write an external lexer (well kind of, but that’s a different story). I’ve looked at some other examples (the GEDCOM lexer, Gmod Lua Lexer, etc) and understand how they work and the general setup for getting an external lexer working.

    My question is regarding styling. In the xml file associated with the external lexer, there are “WordsStyle” tags that need to be defined that have a styleID, font color, size, et*

    • italicised text*c so that the external lexer Lex() function can use these styles. Is there a way to generate these styles within the lexer itself, meaning you can possibly have a varying number of styles? I know there isn’t a huge number of people that deal with external lexers, so hopefully someone can help :)

Log in to reply