1
0
mirror of https://github.com/thangisme/notes.git synced 2024-09-30 08:55:54 -04:00
notes/node_modules/postcss-less/dist/tokenizer/is-escaping.js

17 lines
471 B
JavaScript
Raw Normal View History

2017-03-09 13:16:08 -05:00
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isEscaping;
var _globals = require('./globals');
var nextSymbolVariants = [_globals.backTick, _globals.doubleQuote, _globals.singleQuote];
function isEscaping(state) {
var nextSymbolCode = state.css.charCodeAt(state.pos + 1);
return state.symbolCode === _globals.tilde && nextSymbolVariants.indexOf(nextSymbolCode) >= 0;
}
module.exports = exports['default'];