1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-12 09:00:55 +00:00
notes/node_modules/postcss-less/dist/tokenizer/is-escaping.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

17 lines
471 B
JavaScript

'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'];