Hi. I'm interested in having a mode for a language I am working on, and since it's syntax is close to Python's I have created my own properties file based on python.properties. While the lexer does recognize the keywords of my language with the new file, I cannot set different colours for them.
Here's an extract of my properties file (called 'kiltera.properties') file.patterns.klt=*.klt filter.klt=kiltera (klt)|$(file.patterns.klt)| lexer.$(file.patterns.klt)=python keywordclass.klt=after and async at channel channels do done else false for function from if import in interrupt let main match module nil not or par print process receive send seq sync then to timeout true unit wait with keywords.$(file.patterns.klt)=$(keywordclass.klt) # Keywords style style.python.5=fore:#00007F,bold #etc... If I understand correctly, the 'style.python.5' variable, as any other property, is "global" so when the python.properties file sets this, whichever is set last will take effect. But if I set the keyword style for my language as style.klt.5=fore:#00007F,bold or style.kiltera.5=fore:#00007F,bold the lexer will ignore it (as python.properties is imported after kiltera.properties.) Is there any way to reuse the python lexer and have a different style scheme for other languages, or all languages based on the same lexer will necessarily have the same style scheme? Thanks -- Ernesto Posse Modelling, Simulation and Design Lab - School of Computer Science McGill University - Montreal, Quebec, Canada url: http://moncs.cs.mcgill.ca/people/eposse _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
