Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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