Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] syntax,js-like: full css and newline

  • Loading branch information...
commit dc2b130b7267b2423bba48732d22b0b68cbd6558 1 parent a06a0ae
@OpaOnWindowsNow OpaOnWindowsNow authored BourgerieQuentin committed
Showing with 2 additions and 9 deletions.
  1. +1 −5 opalang/js_syntax/css.trx
  2. +1 −4 opalang/js_syntax/opa_parser.trx
View
6 opalang/js_syntax/css.trx
@@ -167,8 +167,4 @@ bloc_css <- paths:paths props_aux:props bloc_css?:o
map_add_merge pos paths props bloc_css
}}
-css_map <- Opa_lexer.CSS Opa_lexer.lbrace spacing bloc_css:v Opa_lexer.rbrace spacing {{ v }}
-
-/** global css definition **/
-css <- (=deco(Opa_lexer.CSS)):p Opa_lexer.assign css_map:v
- {{ NewVal ([(patident "css" (label p),list_expr_of_expr_list_unsafe [v])],false) }}
+css_map <- Opa_lexer.CSS spacing bloc_css:v {{ v }}
View
5 opalang/js_syntax/opa_parser.trx
@@ -1,5 +1,5 @@
(*
- Copyright © 2011 MLstate
+ Copyright © 2011, 2012 MLstate
This file is part of OPA.
@@ -86,7 +86,6 @@ just_declaration <-
/ declaration_database
/ declaration_type
/ declaration_binding
- / declaration_css
/ declaration_do
/ (&. {{ print_hints () }}) _fail {{ assert false }}
@@ -106,8 +105,6 @@ declaration_do <- expr:e
[NewVal ([(p,e)],false) ]
}}
-declaration_css <- Css.css:d {{ [d] }}
-
Please sign in to comment.
Something went wrong with that request. Please try again.