Skip to content

css_parse: refactor CursorCompactWriteSink, preserve comments between idents - #1118

Merged
keithamus merged 1 commit into
mainfrom
css-parse-refactor-cursorcompactwritesink-preserve-comments-between-idents
May 17, 2026
Merged

css_parse: refactor CursorCompactWriteSink, preserve comments between idents#1118
keithamus merged 1 commit into
mainfrom
css-parse-refactor-cursorcompactwritesink-preserve-comments-between-idents

Conversation

@keithamus

Copy link
Copy Markdown
Member

We've had a few changes to CursorCompactWriteSink which fixup stuff, but the
flow is getting a little messy. #1112 now introduces another change which could
make things even less comprehensible.

This change attempts to refactor CursorCompactWriteSink while also incorporating
changes from #1112. Closes #1112, fixes #770.

… idents

We've had a few changes to CursorCompactWriteSink which fixup stuff, but the
flow is getting a little messy. #1112	now introduces another change which could
make things even less comprehensible.

This change attempts to refactor CursorCompactWriteSink while also incorporating
changes from #1112. Closes #1112, fixes #770.
@keithamus
keithamus enabled auto-merge (squash) May 17, 2026 08:36

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All CI jobs have passed. Approving.

@keithamus
keithamus merged commit 6558f57 into main May 17, 2026
16 of 17 checks passed
@keithamus
keithamus deleted the css-parse-refactor-cursorcompactwritesink-preserve-comments-between-idents branch May 17, 2026 08:44
github-actions Bot pushed a commit that referenced this pull request May 18, 2026
## [0.0.23] - 2026-05-18

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))

[forcebuild]
@keithamus keithamus mentioned this pull request May 18, 2026
github-actions Bot pushed a commit that referenced this pull request May 18, 2026
## [0.0.23] - 2026-05-18

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
github-actions Bot pushed a commit that referenced this pull request May 18, 2026
## [0.0.23] - 2026-05-18

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))

[forcebuild]
github-actions Bot pushed a commit that referenced this pull request May 18, 2026
## [0.0.23] - 2026-05-18

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))
github-actions Bot pushed a commit that referenced this pull request May 20, 2026
## [0.0.23] - 2026-05-20

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))

[forcebuild]
github-actions Bot pushed a commit that referenced this pull request May 20, 2026
## [0.0.23] - 2026-05-20

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))
github-actions Bot pushed a commit that referenced this pull request May 21, 2026
## [0.0.23] - 2026-05-21

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))
- css_ast: Implement text-overflow (#1134) ([#1134](#1134))
- css_ast: Implement more legacy/vendor display values (#1135) ([#1135](#1135))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))

[forcebuild]
github-actions Bot pushed a commit that referenced this pull request May 21, 2026
## [0.0.23] - 2026-05-21

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))
- css_ast: Implement text-overflow (#1134) ([#1134](#1134))
- css_ast: Implement more legacy/vendor display values (#1135) ([#1135](#1135))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))
github-actions Bot pushed a commit that referenced this pull request May 22, 2026
## [0.0.23] - 2026-05-22

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))
- css_ast: Implement text-overflow (#1134) ([#1134](#1134))
- css_ast: Implement more legacy/vendor display values (#1135) ([#1135](#1135))
- css_ast: Implement light-dark for color values (#1136) ([#1136](#1136))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_spec_generator
- csskit_spec_generator: Replace non-breaking spaces with whitespace (#1137) ([#1137](#1137))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))

[forcebuild]
github-actions Bot pushed a commit that referenced this pull request May 22, 2026
## [0.0.23] - 2026-05-22

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))
- css_ast: Implement text-overflow (#1134) ([#1134](#1134))
- css_ast: Implement more legacy/vendor display values (#1135) ([#1135](#1135))
- css_ast: Implement light-dark for color values (#1136) ([#1136](#1136))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_spec_generator
- csskit_spec_generator: Replace non-breaking spaces with whitespace (#1137) ([#1137](#1137))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comments maybe can't be replaced by whitespace in custom properties

1 participant