Renamed more constants to avoid exporting

This commit is contained in:
2025-01-30 10:44:34 -05:00
parent b8f5b9af7c
commit 7e792f1248
4 changed files with 32 additions and 32 deletions

View File

@@ -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
}