mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 04:17:33 -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'];
|