xref: /Universal-ctags/Units/parser-javascript.r/js-unicode-escape.d/input.js (revision 9353065fe92d619c16c1c71e4fced0300cb73338)
1// literal
2function é_1() {}
3// UTF-16 escape
4function \u00E9_2() {}
5function \u00e9_3() {}
6// code point escape
7function \u{e9}_4() {}
8// leading zeros don't matter
9function \u{0000000000000000000e9}_5() {}
10// mixed with a diacritic
11function \u{65}\u0301_6() {}
12
13// similar with a non-BMP character
14/* (this tests strings, mostly because I was unable to find a valid identifier
15 *  character outside of the BMP) */
16var object = {
17  '��_1': function(){},
18  '\uD800\uDF00_2': function(){},
19  '\u{10300}_3': function(){},
20};
21