Semicolon Problem

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Semicolon Problem

Post by Vadi »

I use a ;; instead, seems to work much better for me.

A semicolon doesn't affect your scripts unless you used it within expandAlias.

User avatar
SlySven
Posts: 1019
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Semicolon Problem

Post by SlySven »

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:

Code: Select all

setLabelStyleSheet( "counter", "QLabel{color:blue; background-color:green} QLabel::hover{color:blue; background-color:red}" )
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)...

Post Reply