Lexer matching full filename, not only extension

All questions regarding lexer highlighting schemes are discussed here...
Locked
vfloyd

Lexer matching full filename, not only extension

Post by vfloyd »

Hello,

Could you make the lexer match with complete filename instead of only extension ?

In my case, I would like to associate a lexer with the filename "vente.*". For the moment I can't do that because only extension is used.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

"Make files" lexer uses not only extension match. See its example.
vfloyd

Post by vfloyd »

That's true, thank you. Is this possible to make a file type matching with two lexers ?

For exemple

Lexer1 match *.001 *.002
Lexer2 match vente.001

I would like that a file named vente.001 match both lexers.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Can set so. But first of them (first added to library) will activate
vfloyd

Post by vfloyd »

Thank for your answers. I did it.
Locked