2 from marker
import Marker
6 def __init__(self
, source
, data
):
8 self
.data
= unicode(data
, 'utf-8')+u
'\0'
14 return self
.data
[self
.index
:self
.index
+k
]
17 value
= self
.data
[self
.index
:self
.index
+k
]
19 if self
.index
>= len(self
.data
):
21 if self
.data
[self
.index
] in u
'\r\n\x85\u2028\u2029':
30 return Marker(self
.source
, self
.data
, self
.index
, self
.line
, self
.column
)