mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 03:17:30 -04:00
1 line
583 B
JavaScript
1 line
583 B
JavaScript
"use strict";function tokenizeWhitespace(e){e.nextPos=e.pos;do e.nextPos+=1,e.symbolCode=e.css.charCodeAt(e.nextPos),e.symbolCode===_globals.newline&&(e.offset=e.nextPos,e.line+=1);while(e.symbolCode===_globals.space||e.symbolCode===_globals.newline||e.symbolCode===_globals.tab||e.symbolCode===_globals.carriageReturn||e.symbolCode===_globals.feed);e.tokens.push(["space",e.css.slice(e.pos,e.nextPos)]),e.pos=e.nextPos-1}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=tokenizeWhitespace;var _globals=require("./globals");module.exports=exports["default"]; |