Skip to content

Fix that '#' was not allowed in CSS#75

Open
FMeinicke wants to merge 1 commit intoAbleton:mainfrom
FMeinicke:fix-parsing
Open

Fix that '#' was not allowed in CSS#75
FMeinicke wants to merge 1 commit intoAbleton:mainfrom
FMeinicke:fix-parsing

Conversation

@FMeinicke
Copy link
Contributor

The '#' character is used in CSS as the id selector. Since we're using the stylesheets in our application for QWidgets as well as QML we at least need the parser to not fail when it encounters rules like

QLabel#nameLabel
{
    /* ... */
}

This commit does just that: it allows the '#' character as a valid character for identifiers. This results in the parser not failing on rules like the above anymore. However, the above would be parsed as an identifier with the name "QLabel#nameLabel". I don't think that this is a problem since aqt-stylesheets does not support selecting components by id anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant