Renamed more constants to avoid exporting
This commit is contained in:
@@ -54,7 +54,7 @@ func newCharClassNode(nodes []postfixNode, negated bool) postfixNode {
|
||||
rtv.endReps = 1
|
||||
if negated {
|
||||
rtv.nodetype = characterNode
|
||||
rtv.contents = []rune{ANY_CHAR}
|
||||
rtv.contents = []rune{anyCharRune}
|
||||
rtv.allChars = true
|
||||
rtv.except = nodes
|
||||
} else {
|
||||
@@ -169,10 +169,10 @@ func newPostfixNode(contents ...rune) postfixNode {
|
||||
|
||||
// Special cases for LPAREN and RPAREN - they have special characters defined for them
|
||||
if to_return.nodetype == lparenNode {
|
||||
to_return.contents = []rune{LPAREN_CHAR}
|
||||
to_return.contents = []rune{lparenRune}
|
||||
}
|
||||
if to_return.nodetype == rparenNode {
|
||||
to_return.contents = []rune{RPAREN_CHAR}
|
||||
to_return.contents = []rune{rparenRune}
|
||||
}
|
||||
}
|
||||
return to_return
|
||||
@@ -185,7 +185,7 @@ func newPostfixDotNode() postfixNode {
|
||||
toReturn.endReps = 1
|
||||
toReturn.nodetype = characterNode
|
||||
toReturn.allChars = true
|
||||
toReturn.contents = []rune{ANY_CHAR}
|
||||
toReturn.contents = []rune{anyCharRune}
|
||||
return toReturn
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user