Add !important support for four-value rules

The regex change was given by Bartosz Dziewoński at
https://bugzilla.wikimedia.org/show_bug.cgi?id=61440#c1 .