mirror of
https://github.com/thangisme/notes.git
synced 2024-11-16 15:16:01 -05:00
1 line
1.5 KiB
JavaScript
1 line
1.5 KiB
JavaScript
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function tokenizeDefault(e){var n=e.css.charCodeAt(e.pos+1);if(e.symbolCode===_globals.slash&&n===_globals.asterisk)(0,_tokenizeMultilineComment2["default"])(e);else if(e.symbolCode===_globals.slash&&n===_globals.slash)(0,_tokenizeInlineComment2["default"])(e);else{if((0,_isEscaping2["default"])(e)){var t=(0,_findEndOfEscaping2["default"])(e);t<0?(0,_unclosed2["default"])(e,"escaping"):e.nextPos=t}else _globals.wordEndPattern.lastIndex=e.pos+1,_globals.wordEndPattern.test(e.css),0===_globals.wordEndPattern.lastIndex?e.nextPos=e.css.length-1:e.nextPos=_globals.wordEndPattern.lastIndex-2;e.cssPart=e.css.slice(e.pos,e.nextPos+1),e.tokens.push(["word",e.cssPart,e.line,e.pos-e.offset,e.line,e.nextPos-e.offset]),e.pos=e.nextPos}}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=tokenizeDefault;var _globals=require("./globals"),_findEndOfEscaping=require("./find-end-of-escaping"),_findEndOfEscaping2=_interopRequireDefault(_findEndOfEscaping),_isEscaping=require("./is-escaping"),_isEscaping2=_interopRequireDefault(_isEscaping),_tokenizeInlineComment=require("./tokenize-inline-comment"),_tokenizeInlineComment2=_interopRequireDefault(_tokenizeInlineComment),_tokenizeMultilineComment=require("./tokenize-multiline-comment"),_tokenizeMultilineComment2=_interopRequireDefault(_tokenizeMultilineComment),_unclosed=require("./unclosed"),_unclosed2=_interopRequireDefault(_unclosed);module.exports=exports["default"]; |