mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 06:27:23 -04:00
17 lines
471 B
JavaScript
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']; |