Page 1 of 1

AviSynth lexer - stream comments

Posted: 25.11.2016 07:31
by MarianD
The AviSynth lexer presently recognizes only the line comment (beginning with #).

But there are also 2 types of stream comments (/* */ and [* *]).

I tried customizing Lexer.cfg and regular expression (in the lexer parser) but they worked only partially (highlighting stream commands).

I'm not able to apply stream comments in Synwrite (6.28.2440) from the comments plugin.

So I would appreciate including stream comments into AviSynth plugin.

Thank you.

Posted: 25.11.2016 18:42
by Alexey
I updated lexer now; pls reinstall (AddonManager) and apply comment via Comments plg

Posted: 25.11.2016 23:40
by MarianD
Thank you for your incredible promptness!

I updated both Synwrite (to version 6.28.2442) and AviSynth lexer - highlighting now works OK for all types of comments.

But I'm still not able to apply stream comments from the comments plugin, I got the following message in the status line:

        No range-comments for lexer AviSynth


Is there a possibility that it is caused by the existence of 2 types of stream comments, so it is not clear which of them to apply?

Posted: 26.11.2016 02:00
by Alexey
I found a reason for "no range comments....." -it is missed file AviSynth.cuda-lexmap in dir data/lexlib
Pls copy file by hands from AviSynth zip - I will fix ltr
https://sourceforge.net/projects/synwrite-addons/files/

Posted: 26.11.2016 14:27
by MarianD
Thank you again for your very quick answer - now it works all OK!

Posted: 27.11.2016 01:04
by Alexey
I accept reports about other lexs too