Support suffix #1

Closed
Tarrowren wants to merge 1 commit from main into main
Tarrowren commented 2023-07-04 11:57:12 +02:00 (Migrated from github.com)
https://github.com/Tarrowren/css-class-intellisense/issues/15
marijnh commented 2023-07-04 13:13:30 +02:00 (Migrated from github.com)

What feature does this implement (the linked issue explains absolutely nothing)?

What feature does this implement (the linked issue explains absolutely nothing)?
Tarrowren commented 2023-07-04 14:17:06 +02:00 (Migrated from github.com)
I added the suffix feature. https://sass-lang.com/documentation/style-rules/parent-selector/ ![image](https://github.com/lezer-parser/sass/assets/35626141/b98965e4-4244-43ee-b041-314a080592a0)
marijnh commented 2023-07-05 14:45:40 +02:00 (Migrated from github.com)

Why did you include selector? in the rule? It seems to work just as well without that.

Why did you include `selector?` in the rule? It seems to work just as well without that.
Tarrowren commented 2023-07-05 15:20:55 +02:00 (Migrated from github.com)

suffix is used for className, which I think is close to classSelector.

suffix is not currently parsed correctly.
image

suffix is used for className, which I think is close to classSelector. suffix is not currently parsed correctly. ![image](https://github.com/lezer-parser/sass/assets/35626141/1af43c6e-8edd-49d7-ad47-be8a683ee744)
marijnh commented 2023-07-05 16:16:11 +02:00 (Migrated from github.com)

That doesn't answer my question about the use of selector? in the new rule at all. Attached patch implements this in a way that seems more correct to me.

That doesn't answer my question about the use of `selector?` in the new rule at all. Attached patch implements this in a way that seems more correct to me.
Tarrowren commented 2023-07-07 05:41:44 +02:00 (Migrated from github.com)

Sorry, I misunderstood what you said. It's not appropriate to use selector? here.

Sorry, I misunderstood what you said. It's not appropriate to use `selector?` here.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/sass!1
No description provided.