Updated by
Modified
snippet.go- Ignore whitespace
// This parses and decodes encodings of unicode such as \u1D740 and \UF0908D88 and the escapable N-Triple characters t, b, n, r, f, ", ', and \
- unicode4 = pr.WithAction(pr.And(backslash, lowerU, pr.WithAction(pr.N(pr.HexDigit, 4), pr.ConcatAction)), pr.Compose(pr.Third, hex(4)))
- unicode8 = pr.WithAction(pr.And(backslash, upperU, pr.WithAction(pr.N(pr.HexDigit, 8), pr.ConcatAction)), pr.Compose(pr.Third, hex(8)))
+ unicode4 = pr.WithAction(pr.And(backslash, lowerU, pr.NString(pr.HexDigit, 4)), pr.Compose(pr.Third, hex(4)))
+ unicode8 = pr.WithAction(pr.And(backslash, upperU, pr.NString(pr.HexDigit, 8)), pr.Compose(pr.Third, hex(8)))