From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jimmy Yuen Ho Wong Newsgroups: gmane.emacs.bugs Subject: bug#31306: 27.0.50; js-mode still missing ES2015 keywords Date: Sat, 28 Apr 2018 21:56:14 +0100 Message-ID: <693eea9b-5d3a-b58b-cb67-4b467789e592@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1524948908 4283 195.159.176.226 (28 Apr 2018 20:55:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Apr 2018 20:55:08 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 To: 31306@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 28 22:55:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCWs3-0000x7-H6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Apr 2018 22:55:03 +0200 Original-Received: from localhost ([::1]:53238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCWu8-0002Va-EM for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Apr 2018 16:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCWu1-0002VB-SU for bug-gnu-emacs@gnu.org; Sat, 28 Apr 2018 16:57:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCWty-0002V7-Qm for bug-gnu-emacs@gnu.org; Sat, 28 Apr 2018 16:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34376) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCWty-0002Uw-Mm for bug-gnu-emacs@gnu.org; Sat, 28 Apr 2018 16:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fCWty-0007b3-HF for bug-gnu-emacs@gnu.org; Sat, 28 Apr 2018 16:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Apr 2018 20:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31306 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152494899229152 (code B ref -1); Sat, 28 Apr 2018 20:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Apr 2018 20:56:32 +0000 Original-Received: from localhost ([127.0.0.1]:42273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCWtT-0007a8-Mv for submit@debbugs.gnu.org; Sat, 28 Apr 2018 16:56:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCWtQ-0007Zn-C2 for submit@debbugs.gnu.org; Sat, 28 Apr 2018 16:56:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCWtJ-0002Cg-Ug for submit@debbugs.gnu.org; Sat, 28 Apr 2018 16:56:23 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59776) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fCWtJ-0002Ca-Qr for submit@debbugs.gnu.org; Sat, 28 Apr 2018 16:56:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCWtI-0002QR-3N for bug-gnu-emacs@gnu.org; Sat, 28 Apr 2018 16:56:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCWtF-0002BM-1E for bug-gnu-emacs@gnu.org; Sat, 28 Apr 2018 16:56:20 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:33161) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCWtE-0002B6-PB for bug-gnu-emacs@gnu.org; Sat, 28 Apr 2018 16:56:16 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id x12so7014961wmc.0 for ; Sat, 28 Apr 2018 13:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:subject:from:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=KqPmwy4RJKwSA0ErBM5QvqHdoLMcRewFQhVrXxB2ikg=; b=NU0rk7wK6q2IcXs0bDeX1MO2yGKPfTppoTFvKDib3TgJ9YqeGuaR2j7NU/sFFyDhAW AltxKNsSr1FuKj7lkNnSOVeZgBTYEFgvzrWemNNN2P3LeDlTPrPVdCjLghrQ1bcAERA1 FNs1MMDgJzGH93KmU0aZ43K7yikHA/KZFjfG/GKaixOQ5DB32QKaoPulCvE7gnqKljDx z6yJhI6S04s1f/QUaBXYZJWBuz7R+o2I6GuqWktg42GEx4kXkYFe9TxzYVmByEwDxnR5 Gdim+ypyrSvetUrxNjmCpiJeTFmW1sgJaQIBEKK5ELv7RWiDnN+bjpPtvpJa3kGoeJAN sXUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:subject:from:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=KqPmwy4RJKwSA0ErBM5QvqHdoLMcRewFQhVrXxB2ikg=; b=f8j5BGhHQo9jMQVbQfKB9ZsekSvlFMHKe0QmZn6qBHywwvJl2GhwVw8+W9KBPTyK2J wLc0Eg5eeXGZT97Hkx73mhHde3gSYOGNHm1IeuGYuNvaTn3ccqahtc/95PB9BWmHzDJL 9nk5hODLA0R5U/P883vAERauKN0MmK9DJQnhYcCFEuYZJETf3QQjqhgSwO3L9xMNgsg8 9u89IjSTrkJP9r5gjt5u1TIIQjlYcbJ61Yh6d4kBvHND2+lvlDsFPhvICtnY9LIdheEe 7x9vfOLpBviVNe0g8c05//lxGHyXHECKcnK+ZTKqm4pzwACwwXZmyS01qaQ1Sd7o2bUu n5Vg== X-Gm-Message-State: ALQs6tBNLC+6T7yDfVLCCqPefQ9eCVQxGrSYDkNvcPrLyYqH65z271cY lTtd7wUBVDoJY8DAADdQ59hsn432 X-Google-Smtp-Source: AB8JxZpxz3kedLNORRErHVKqAw7lZpIEETW4vXdUeoK5ksadad5D/WgffOj5uPpmkLR7B9TLnrUq2g== X-Received: by 10.28.55.194 with SMTP id e185mr4080152wma.20.1524948975381; Sat, 28 Apr 2018 13:56:15 -0700 (PDT) Original-Received: from MobileCat.local ([88.98.208.53]) by smtp.gmail.com with ESMTPSA id k30-v6sm3440543wrf.17.2018.04.28.13.56.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Apr 2018 13:56:14 -0700 (PDT) Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:145810 Archived-At: Reproduction: 1. Install most recent Emacs 26 nightly build from https://emacsformacosx.com/builds 2. Open a new .js file buffer in js-mode 3. Type: import * as foo from 'bar'; for (const i of [1,2,3]) {} 4. The "as", "from" and "of" have been ECMAScript keywords since at least 2015, but it's still not highlighted. Expectation: "as", "from", and "of" should be highlighted. Specially, "as" and "from" should only be highlighted in an import statement. "of" should only be highlighted in a for statement. Any other occurrances of "as", "from" and "of" should not be highlighted as they are legal identifiers outside of import and for statements respectively. Jimmy Yuen Ho Wong In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2018-04-18 built on builder10-9.porkrind.org Windowing system distributor 'Apple', version 10.3.1561 System Description: Mac OS X 10.13.4 Recent messages: Quit [2 times] Followed link to /Users/wyuenho/Documents/workspace/dotfiles/.importjs.js Making completion list... [2 times] Mark set [2 times] Auto-saving...done Followed link to /Users/wyuenho/Documents/workspace/dotfiles/.emacs Mark saved where search started Quit Undo! C-x C-g is undefined Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: JavaScript Minor modes in effect: diff-auto-refine-mode: t 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 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 mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch vc-git diff-mode easy-mmode js advice sgml-mode dom json map seq byte-opt gv bytecomp byte-compile cconv imenu thingatpt 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 time-date elec-pair tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer 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 kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 235839 10075) (symbols 48 23375 2) (miscs 40 83 326) (strings 32 39937 2161) (string-bytes 1 1179357) (vectors 16 39760) (vector-slots 8 764599 10838) (floats 8 52 298) (intervals 56 414 0) (buffers 992 15))