|
|
@ -62,6 +62,9 @@ func newEscapedNode(c rune) postfixNode {
|
|
|
|
case 'b', 'B':
|
|
|
|
case 'b', 'B':
|
|
|
|
toReturn.nodetype = ASSERTION
|
|
|
|
toReturn.nodetype = ASSERTION
|
|
|
|
toReturn.contents = append(toReturn.contents, c)
|
|
|
|
toReturn.contents = append(toReturn.contents, c)
|
|
|
|
|
|
|
|
case 'n': // Newline character
|
|
|
|
|
|
|
|
toReturn.nodetype = CHARACTER
|
|
|
|
|
|
|
|
toReturn.contents = append(toReturn.contents, '\n')
|
|
|
|
default: // None of the above - append it as a regular character
|
|
|
|
default: // None of the above - append it as a regular character
|
|
|
|
toReturn.nodetype = CHARACTER
|
|
|
|
toReturn.nodetype = CHARACTER
|
|
|
|
toReturn.contents = append(toReturn.contents, c)
|
|
|
|
toReturn.contents = append(toReturn.contents, c)
|
|
|
|