Closed oovm closed 1 year ago
Without @position
, UnicodeSpace
will be a type alias to String
. I guess in your example it would become a struct with a single value and position fields? Or just the position?
I'm not sure how universal these would be and if it fit anyone else's use-case. I'd prefer to wait for someone else with a similar problem.
For now I'd suggest doing something like:
@extern(crate::utils::unicode_whitespace)
UnicodeSpaceExt;
@position
UnicodeSpace = spaces:UnicodeSpaceExt;
Good idea
peg side
rust side
except:
start offset + length offset
actual: