aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/format/css/query.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/data/format/css/query.lux')
-rw-r--r--stdlib/source/library/lux/data/format/css/query.lux62
1 files changed, 31 insertions, 31 deletions
diff --git a/stdlib/source/library/lux/data/format/css/query.lux b/stdlib/source/library/lux/data/format/css/query.lux
index 8251fcb06..7e2272c4a 100644
--- a/stdlib/source/library/lux/data/format/css/query.lux
+++ b/stdlib/source/library/lux/data/format/css/query.lux
@@ -1,25 +1,25 @@
(.using
- [library
- [lux {"-" and or not}
- [control
- [parser
- ["s" code]]]
- [data
- ["[0]" text
- ["%" format {"+" format}]]]
- [macro
- ["[0]" template]
- ["[0]" code]
- [syntax {"+" syntax:}]]
- [type
- abstract]]]
- ["[0]" // "_"
- ["[1][0]" value {"+" Value Length Count Resolution Ratio
- Orientation Scan Boolean Update
- Block_Overflow Inline_Overflow
- Display_Mode Color_Gamut Inverted_Colors
- Pointer Hover
- Light Scripting Motion Color_Scheme}]])
+ [library
+ [lux {"-" and or not}
+ [control
+ [parser
+ ["s" code]]]
+ [data
+ ["[0]" text
+ ["%" format {"+" format}]]]
+ [macro
+ ["[0]" template]
+ ["[0]" code]
+ [syntax {"+" syntax:}]]
+ [type
+ [abstract {"-" pattern}]]]]
+ ["[0]" // "_"
+ ["[1][0]" value {"+" Value Length Count Resolution Ratio
+ Orientation Scan Boolean Update
+ Block_Overflow Inline_Overflow
+ Display_Mode Color_Gamut Inverted_Colors
+ Pointer Hover
+ Light Scripting Motion Color_Scheme}]])
(syntax: (text_symbol [symbol s.text])
(in (list (code.local_symbol (text.replaced "-" "_" symbol)))))
@@ -29,12 +29,12 @@
(def: .public media
(-> Media Text)
- (|>> :representation))
+ (|>> representation))
(template [<media>]
[(`` (def: .public (~~ (text_symbol <media>))
Media
- (:abstraction <media>)))]
+ (abstraction <media>)))]
["all"]
["print"]
@@ -47,12 +47,12 @@
(def: .public feature
(-> Feature Text)
- (|>> :representation))
+ (|>> representation))
(template [<feature> <brand>]
[(`` (def: .public ((~~ (text_symbol <feature>)) input)
(-> (Value <brand>) Feature)
- (:abstraction (format "(" <feature> ": " (//value.value input) ")"))))]
+ (abstraction (format "(" <feature> ": " (//value.value input) ")"))))]
["min-color" Count]
["color" Count]
@@ -107,12 +107,12 @@
(def: .public query
(-> Query Text)
- (|>> :representation))
+ (|>> representation))
(template [<name> <operator>]
[(def: .public <name>
(-> Media Query)
- (|>> ..media (format <operator>) :abstraction))]
+ (|>> ..media (format <operator>) abstraction))]
[except "not "]
[only "only "]
@@ -120,14 +120,14 @@
(def: .public not
(-> Feature Query)
- (|>> ..feature (format "not ") :abstraction))
+ (|>> ..feature (format "not ") abstraction))
(template [<name> <operator>]
[(def: .public (<name> left right)
(-> Query Query Query)
- (:abstraction (format (:representation left)
- <operator>
- (:representation right))))]
+ (abstraction (format (representation left)
+ <operator>
+ (representation right))))]
[and " and "]
[or " or "]