Stylesheets are preprocessed before fed into tokenizer.
The preprocessing means:
dropping comments (block and single line comments are handled)
handling imports: @import ‘my.file.nss’
The autoupdate feature is modified too, in order to monitor the main file and it's dependencies too.
The main goal was to get able splitting my stylesheets into smaller ones,
like collecting the colours used into one file, buttons into an other and so on.
Drawbacks:
the preprocessor uses NSRegularExpression to check the input which
could be slow if intensively used, however in this case we are checking
for 3 simple patterns.
the location-related token properties got broken due the imports,
however they aren’t used on NUI-level at all.
Stylesheets are preprocessed before fed into tokenizer. The preprocessing means:
The main goal was to get able splitting my stylesheets into smaller ones, like collecting the colours used into one file, buttons into an other and so on.
Drawbacks: