@@ -15,8 +15,8 @@ handle.unknown = unknownNesting
15
15
handle . invalid = topScan // `undefined` is the top query selector.
16
16
handlers . null = descendant // `null` is the descendant combinator.
17
17
handlers [ '>' ] = child
18
- handlers [ '+' ] = adjacentSibling
19
- handlers [ '~' ] = generalSibling
18
+ handlers [ '+' ] = nextSibling
19
+ handlers [ '~' ] = subsequentSibling
20
20
21
21
function match ( query , node , index , parent , state ) {
22
22
return handle ( query , node , index , parent , state )
@@ -70,7 +70,7 @@ function child(query, node, index, parent, state) {
70
70
. done ( )
71
71
}
72
72
73
- function adjacentSibling ( query , node , index , parent , state ) {
73
+ function nextSibling ( query , node , index , parent , state ) {
74
74
/* istanbul ignore if - Shouldn’t happen. */
75
75
if ( ! parent ) {
76
76
return
@@ -83,7 +83,7 @@ function adjacentSibling(query, node, index, parent, state) {
83
83
. done ( )
84
84
}
85
85
86
- function generalSibling ( query , node , index , parent , state ) {
86
+ function subsequentSibling ( query , node , index , parent , state ) {
87
87
/* istanbul ignore if - Shouldn’t happen. */
88
88
if ( ! parent ) {
89
89
return
0 commit comments