Skip to content

Commit 9a1f31c

Browse files
committed
update ChangeLog.md
1 parent e2c1753 commit 9a1f31c

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

yesod-test/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ChangeLog for yesod-test
22

3+
## 1.6.24
4+
5+
* Add CSS Level 3 structural pseudo-class support for `:nth-child`, `:first-child`, `:last-child` to yesod-test. [#1878](https://github.com/yesodweb/yesod/pull/1878)
6+
37
## 1.6.23.1
48

59
* Set `base >= 4.11` for less CPP and imports [#1876](https://github.com/yesodweb/yesod/pull/1876)

yesod-test/Yesod/Test/CssQuery.hs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ parseQuery = parseOnly cssQuery
7878

7979
-- Below this line is the Parsec parser for css queries.
8080
cssQuery :: Parser [[SelectorGroup]]
81-
cssQuery = (many (char ' ') >> sepBy rules (char ',' >> many (char ' ')))
81+
cssQuery = many (char ' ') >> sepBy rules (char ',' >> many (char ' '))
8282

8383
rules :: Parser [SelectorGroup]
8484
rules = many $ directChildren <|> deepChildren
@@ -135,8 +135,14 @@ pArg = char '(' *> spaceSurrounded pANPlusB <* char ')'
135135
pANPlusB :: Parser ANPlusB
136136
pANPlusB = choice [repetition, position, fixed]
137137
where repetition = Repetition
138-
<$> option 1 (choice [char '-' *> fmap negate decimal, char '-' >> pure (-1), decimal]) <* char 'n'
139-
<*> option 0 (choice [spaceSurrounded (char '+') *> decimal, spaceSurrounded (char '-') *> fmap negate decimal])
138+
<$> option 1
139+
( choice [char '-' *> fmap negate decimal
140+
, char '-' >> pure (-1), decimal]
141+
) <* char 'n'
142+
<*> option 0
143+
( choice [spaceSurrounded (char '+') *> decimal
144+
, spaceSurrounded (char '-') *> fmap negate decimal]
145+
)
140146
position = Position <$> decimal
141147
fixed = choice
142148
[ string "odd" >> pure Odd

0 commit comments

Comments
 (0)