regexper-static/src/js/parser/javascript/charset_escape.js

13 lines
364 B
JavaScript
Raw Normal View History

// 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.
2014-12-07 22:38:24 +00:00
import _ from 'lodash';
import Escape from './escape.js';
export default _.extend({}, Escape, {
type: 'charset-escape',
2014-12-07 22:38:24 +00:00
b: ['backspace', 0x08, true]
2014-12-07 22:38:24 +00:00
});