bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #62203] JavaScript parser stops at the 1st template string in curly


From: Gianni Lerro
Subject: [bug #62203] JavaScript parser stops at the 1st template string in curly braces ”{}“ after left shift operators ”<<“
Date: Fri, 10 Feb 2023 13:03:15 -0500 (EST)

Follow-up Comment #1, bug #62203 (project gettext):

I have a similar problem, i don't have a "<<" but a "++".
In my case JavaScript parser stops at the 1st template string in curly braces
”{}“ after increment operators ”++“.

```js
// test.js
if (this._nAttempts++  < 100) {
_('a');
{
    _('b')
    `${1}`;
    _('c');
}
_('d');
```
Only string `a` and `b` will be extracted when running `xgettext test.js
--output=-` in a terminal. (gettext 0.21-11 / Debian Testing)


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62203>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]