AviSynth lexer - stream comments

All questions regarding lexer highlighting schemes are discussed here...
Post Reply
MarianD
Posts: 5
Joined: 30.03.2015 16:38

AviSynth lexer - stream comments

Post 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.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

I updated lexer now; pls reinstall (AddonManager) and apply comment via Comments plg
MarianD
Posts: 5
Joined: 30.03.2015 16:38

Post 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?
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post 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/
MarianD
Posts: 5
Joined: 30.03.2015 16:38

Post by MarianD »

Thank you again for your very quick answer - now it works all OK!
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

I accept reports about other lexs too
Post Reply