+ and > are now correct

pull/32/head v0.3.6
ericchiang 10 years ago
parent 6fee0ebe20
commit c9b88c1354

@ -17,7 +17,7 @@ import (
// |/ \_( # |" // |/ \_( # |"
// C/ ,--___/ // C/ ,--___/
var VERSION string = "0.3.5" var VERSION string = "0.3.6"
func main() { func main() {
// process flags and arguments // process flags and arguments
@ -55,9 +55,9 @@ func main() {
switch cmd { switch cmd {
case "*": // select all case "*": // select all
continue continue
case "+":
funcGenerator = SelectFromChildren
case ">": case ">":
funcGenerator = SelectFromChildren
case "+":
funcGenerator = SelectNextSibling funcGenerator = SelectNextSibling
case ",": // nil will signify a comma case ",": // nil will signify a comma
selectorFuncs = append(selectorFuncs, nil) selectorFuncs = append(selectorFuncs, nil)

Loading…
Cancel
Save