regexper-static/src/js/parser/javascript/charset_escape.js
2015-04-21 20:24:46 -04:00

13 lines
364 B
JavaScript

// CharsetEscape nodes are for escape sequences inside of character sets. They
// differ from other [Escape](./escape.html) nodes in that `\b` matches a
// backspace character instead of a word boundary.
import _ from 'lodash';
import Escape from './escape.js';
export default _.extend({}, Escape, {
type: 'charset-escape',
b: ['backspace', 0x08, true]
});