using a semicolon in a raw value breaks parsing #7

Open
opened 2026-03-22 13:23:11 +01:00 by christian · 0 comments
Owner

example:

open Css

let my_class = [%css [background_color_ ";"] ]

Afterwards I always get the following compiler error, even if I remove the semicolon again:

File "bin/dune", line 6, characters 2-26:                  
6 |   (pps ppx_stylesheet.ppx)))
      ^^^^^^^^^^^^^^^^^^^^^^^^
Fatal error: exception Invalid_argument("result is Error _")

I can only fix it by removing the semicolon from stylesheet.css manually.

example: ```ocaml open Css let my_class = [%css [background_color_ ";"] ] ``` Afterwards I always get the following compiler error, even if I remove the semicolon again: ``` File "bin/dune", line 6, characters 2-26: 6 | (pps ppx_stylesheet.ppx))) ^^^^^^^^^^^^^^^^^^^^^^^^ Fatal error: exception Invalid_argument("result is Error _") ``` I can only fix it by removing the semicolon from ``stylesheet.css`` manually.
Sign in to join this conversation.
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
christian/ppx_stylesheet#7
No description provided.