Page 1 of 1

Lexer matching full filename, not only extension

Posted: 19.12.2013 10:06
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.

Posted: 19.12.2013 12:37
by Alexey
"Make files" lexer uses not only extension match. See its example.

Posted: 19.12.2013 13:00
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.

Posted: 19.12.2013 13:04
by Alexey
Can set so. But first of them (first added to library) will activate

Posted: 19.12.2013 15:41
by vfloyd
Thank for your answers. I did it.