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: INVALID.NOREPLY
Subject: [bug #62203] JavaScript parser stops at the 1st template string in curly braces ”{}“ after left shift operators ”<<“
Date: Sat, 19 Mar 2022 15:11:26 -0400 (EDT)

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

                 Summary: JavaScript parser stops at the 1st template string
in curly braces ”{}“ after left shift operators ”<<“
                 Project: GNU gettext
            Submitted by: tuberry
            Submitted on: Sat 19 Mar 2022 07:11:24 PM UTC
                Category: JavaScript
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

As the title, 
```js
// test.js
1 << 1;
_('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-2 / Arch)




    _______________________________________________________

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]