I use a ;; instead, seems to work much better for me.
A semicolon doesn't affect your scripts unless you used it within expandAlias.
Semicolon Problem
- SlySven
- Posts: 1019
- Joined: Mon Mar 04, 2013 3:40 pm
- Location: Deepest Wiltshire, UK
- Discord: SlySven#2703
Re: Semicolon Problem
One other place where semi-colon detection causes fun is when setting more complicated strings to be used in QStyleSheets for things like labels. The semicolon is required to separate multiple QSS (a bit like CSS) arguments and it took me a while to debug why: didn't work for a label called "counter".
A quick and dirty change for me was to use the setting to modify the (Mudlet) command separator to be the vertical bar '|', which is not something that has significance in Lua AFAIAA but is suggestive to *nix shell users (or should that be '&' instead)...
Code: Select all
setLabelStyleSheet( "counter", "QLabel{color:blue; background-color:green} QLabel::hover{color:blue; background-color:red}" )
A quick and dirty change for me was to use the setting to modify the (Mudlet) command separator to be the vertical bar '|', which is not something that has significance in Lua AFAIAA but is suggestive to *nix shell users (or should that be '&' instead)...