.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / postcss-less / dist / tokenizer / tokenize-inline-comment.js
1 'use strict';
2
3 Object.defineProperty(exports, "__esModule", {
4   value: true
5 });
6 exports.default = tokenizeInlineComment;
7 function 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 }
18 module.exports = exports['default'];