Skip to content

bug: doesn't parse ! important #81

@wetneb

Description

@wetneb

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues of tree-sitter-css

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

No response

Describe the bug

This is valid CSS and doesn't parse:

.test {
  padding-left: 0.4em ! important;
}

Steps To Reproduce/Bad Parse Tree

Parse the above

Expected Behavior/Parse Tree

Same as without a space between ! and important.

Repro

.test {
  padding-left: 0.4em ! important;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions