mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 04:17:33 -04:00
1 line
733 B
JavaScript
1 line
733 B
JavaScript
|
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function tokenizeQuotes(e){e.nextPos=e.pos;do for(e.escaped=!1,e.nextPos=e.css.indexOf(e.symbol,e.nextPos+1),e.nextPos===-1&&(0,_unclosed2["default"])(e,"quote"),e.escapePos=e.nextPos;e.css.charCodeAt(e.escapePos-1)===_globals.backslash;)e.escapePos-=1,e.escaped=!e.escaped;while(e.escaped);e.tokens.push(["string",e.css.slice(e.pos,e.nextPos+1),e.line,e.pos-e.offset,e.line,e.nextPos-e.offset]),e.pos=e.nextPos}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=tokenizeQuotes;var _globals=require("./globals"),_unclosed=require("./unclosed"),_unclosed2=_interopRequireDefault(_unclosed);module.exports=exports["default"];
|