UNPKG

540 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = tokenizeInlineComment;
7function tokenizeInlineComment(state) {
8 state.nextPos = state.css.indexOf('\n', state.pos + 2) - 1;
9
10 if (state.nextPos === -2) {
11 state.nextPos = state.css.length - 1;
12 }
13
14 state.tokens.push(['comment', state.css.slice(state.pos, state.nextPos + 1), state.line, state.pos - state.offset, state.line, state.nextPos - state.offset, 'inline']);
15
16 state.pos = state.nextPos;
17}
18module.exports = exports['default'];
\No newline at end of file