Browse Source

Added Comment constructor

Taddeus Kroes 11 years ago
parent
commit
cfccb86314
2 changed files with 4 additions and 0 deletions
  1. 2 0
      stringify.ml
  2. 2 0
      types.ml

+ 2 - 0
stringify.ml

@@ -130,6 +130,8 @@ let rec string_of_statement = function
   | Supports (condition, statements) ->
     "@supports " ^ stringify_condition " " condition ^
     block (cat "\n\n" string_of_statement statements)
+  | Comment text ->
+    "/*" ^ text ^ "*/"
 
 let string_of_stylesheet = cat "\n\n" string_of_statement
 

+ 2 - 0
types.ml

@@ -50,6 +50,8 @@ type statement =
   (* @keyframes <id> { <rulesets> } *)
   | Supports of condition * statement list
   (* @supports <condition> { <rulesets> } *)
+  | Comment of string
+  (* /* ... */ *)
 
 type stylesheet = statement list