Match `#.`-style lists properly