Re: [e-users] e16: better comment parsing in AclassConfigLineParse

Kim Woelders <[email protected]>
Newsgroups gmane.comp.window-managers.enlightenment.user
Message-ID <[email protected]>
On 2023-06-25 19:22, Dennis Nezic wrote:
> Currently comments in bindings.cfg are parsed dumbly (but efficiently)
> as the first occurrence of '#', even if it occurs in a pair of quotes.
> Attached is a more intelligent way that handles such quotes.
> 
> "eesh exec" in a terminal, and the exec commands in the .menu files are
> both able to handle this, I guess because the shell is doing that
> parsing.
> 
> Eg.
> 	eesh exec logger http://hello#world
> 	eesh exec logger 'http://hello #world'
> 
Hi Dennis,

Thanks for your input. I ended up doing this a bit differently and more 
along the lines of what was done in similar situations elsewhere.
The primary difference is probably that the whitespace before a comment 
should also be stripped.
Also, escapes(\) are not handled specially as they are not either in 
similar cases elsewhere.

/Kim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.