From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Kanivetsky Newsgroups: gmane.emacs.bugs Subject: bug#52353: 27.2; Javascript template literals are not always handled correctly Date: Tue, 7 Dec 2021 13:58:57 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9946"; mail-complaints-to="usenet@ciao.gmane.io" To: 52353@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 07 16:02:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mubyv-0002IE-PC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Dec 2021 16:02:13 +0100 Original-Received: from localhost ([::1]:35468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mubyu-0000XS-OP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Dec 2021 10:02:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mubyk-0000Wn-FM for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 10:02:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mubyk-0008WF-6x for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 10:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mubyk-0001yr-42 for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 10:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuri Kanivetsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Dec 2021 15:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52353 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16388892917552 (code B ref -1); Tue, 07 Dec 2021 15:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Dec 2021 15:01:31 +0000 Original-Received: from localhost ([127.0.0.1]:38440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mubyC-0001xf-D6 for submit@debbugs.gnu.org; Tue, 07 Dec 2021 10:01:31 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:36320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muZBY-0000sG-CY for submit@debbugs.gnu.org; Tue, 07 Dec 2021 07:03:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muZBT-0002Ts-NY for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 07:03:03 -0500 Original-Received: from [2a00:1450:4864:20::12f] (port=34787 helo=mail-lf1-x12f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muZBR-0008Nl-9c for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 07:02:59 -0500 Original-Received: by mail-lf1-x12f.google.com with SMTP id n12so33080962lfe.1 for ; Tue, 07 Dec 2021 04:02:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=NZV4UCF7OiAK4cWyAg8D2+E9NKjKF0sDrpyAW6YvMbQ=; b=q7As3Rxdr7nMWY9QP0I2VcmghMo45722H15e0woFyEvonvqfYQR8P5i0MeKchNZvJA HEw8aM0hop7SKlYjpSee8db3S7lGUcSt6EMsjqJSqHYLK+n8tqNRaA/ZyThlgAbwDKF4 0m9vs0puFIlbm/NVwcTRxhyXGGh2qgub4OW0YI+969NsJ1ygxdpDION5eWVgtc/z3SFO 2dE+vkwSgL8H0K8uE4U/+VBfEdeRqqkwdG/pxQdufCPqQYkz9GpEdSKkBc38s+dc7OWU VQhpnN4sA7M1KBNhRjp4WepsG2CB3n0kdFiycdHbzszcVpRAEOdIBCyF1QAWjO6/7L1J NEmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=NZV4UCF7OiAK4cWyAg8D2+E9NKjKF0sDrpyAW6YvMbQ=; b=Fm7HidM55kD/s1yBT4yamkL4NOiVShwApGLBO1amo10peM5Cd/2e/e35Nl0tZ+E8Zf d9iJcqE7SHnr2v3deoSzSqsDwhwmfKYhPL9I5SIhkMk015gXuV3nP4UhApBmWNK3/7V8 I430FqbRiwfFNgqCEcDi39ZGh6LKQo4C7jP89SduVdE5isigJP+A/GqYudT5HNQXRkH0 dXMC5rGk5hHMawL6///BO9rORLsfrvxaTM3GBioDPgTrqz6/TuphlNxQp6Rtryobehxv iwxGInXcyKZM7JhkE0LbUckcwQutpujTjhzOAd0zMeQBjewbFDxdszFlTwcqfDk9jqwW MlGQ== X-Gm-Message-State: AOAM531KLvnOs3rg4ok+r6hsRDOsn9F4oUHDv6VqA+frFRQvTKF+0yA8 fEmW9OoK23ru39/qX5aSIJxbqakHNZMWYcKNY/2khCwRqA== X-Google-Smtp-Source: ABdhPJz/s9aKN9BBx+z4pDVhxz56XHUW8iFYmVLytx1NvjgeNkEr9f3rvhjv2gjwKkRDZlODOtkzGpqU2/Mps2TyKwE= X-Received: by 2002:ac2:532f:: with SMTP id f15mr39730063lfh.185.1638878553275; Tue, 07 Dec 2021 04:02:33 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12f (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=yuri.kanivetsky@gmail.com; helo=mail-lf1-x12f.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 07 Dec 2021 10:01:26 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221844 Archived-At: Step to reproduce: 1. emacs -Q 2. Create e.g. /tmp/a.js with the following content: ``` function f() { return html`
    ${items.map(i => html`
  • i `)}
`; } function g() {} ``` First, syntax highlighting is off: https://i.imgur.com/CFHyKjW.png And e.g. C-M-h doesn't work, it says: > Scan error: "Unbalanced parenthesis" You might need this kind of code when using the following library: https://github.com/developit/htm But it's not like it introduces some new javascript syntax. --- In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4) of 2021-03-26 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Arch Linux Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-wide-int --with-modules --with-cairo --with-harfbuzz 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: JavaScript Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode easy-mmode js json subr-x map seq byte-opt gv bytecomp byte-compile cconv imenu cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 75586 10047) (symbols 48 9507 1) (strings 32 25031 1412) (string-bytes 1 936455) (vectors 16 14512) (vector-slots 8 180118 8846) (floats 8 25 45) (intervals 56 250 0) (buffers 1000 13))