We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e98ab6 commit 609b5c2Copy full SHA for 609b5c2
ts/input/tex/TexParser.ts
@@ -269,10 +269,10 @@ export default class TexParser {
269
* @return {string} Get and return a control-sequence name
270
*/
271
public GetCS(): string {
272
- let CS = this.string.slice(this.i).match(/^([a-z]+ ?|[\uD800-\uDBFF].|.)/i);
+ let CS = this.string.slice(this.i).match(/^(([a-z]+) ?|[\uD800-\uDBFF].|.)/i);
273
if (CS) {
274
this.i += CS[0].length;
275
- return CS[1];
+ return CS[2] || CS[1];
276
} else {
277
this.i++;
278
return ' ';
0 commit comments