javascript - determine line number when my codemirror mode object is called -
my codemirror mode object implements token(stream, state)
, blankline(state)
methods.
how determine line number of stream
object passed in token
method, , line number skipped when blankline
called?
you can't, , shouldn't. modes must approach document stream, , know came before (the state) , current line (the stream). necessary allow editor use highlighting info , states if lines added or removed above given position in document.
Comments
Post a Comment