From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Emacs crashes when writting JavaScript Date: Mon, 23 Sep 2019 16:29:46 +0300 Message-ID: <2adb716f-4592-06e8-b1ac-b7526635dc4f@yandex.ru> References: <4d136a64-b3f4-24e4-1f28-c22a59468295@jacksonrayhamilton.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="242648"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Cc: emacs-devel@gnu.org To: Jackson Ray Hamilton , jorgejavieran@yahoo.com.mx Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 23 15:32:01 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCORd-0010z1-FR for ged-emacs-devel@m.gmane.org; Mon, 23 Sep 2019 15:32:01 +0200 Original-Received: from localhost ([::1]:56600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCORc-00085n-8C for ged-emacs-devel@m.gmane.org; Mon, 23 Sep 2019 09:32:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57656) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCOPX-0006ox-EG for emacs-devel@gnu.org; Mon, 23 Sep 2019 09:29:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCOPW-0002FK-7X for emacs-devel@gnu.org; Mon, 23 Sep 2019 09:29:51 -0400 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:52133) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCOPW-0002ER-0z for emacs-devel@gnu.org; Mon, 23 Sep 2019 09:29:50 -0400 Original-Received: by mail-wm1-x334.google.com with SMTP id 7so9993794wme.1 for ; Mon, 23 Sep 2019 06:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=v8irJ+ek+uNFJgrtcactDB+kF82dKBTFW5bVliGHFGw=; b=j/mV8UEx307ueQgwot1BIF27EsThzuq26gSUd6fFmQHAIY0EkHYjcPzHrFNMDteZs3 kNtJWetBgVV6akpDTBSAN4x4ePB0ZU8vU0onPi4vLfS+zJ3Wq6Pr9SkzUpRCMk497SGg 0301QL/X0mP74kBXtz1TMUFndHdO4zbSdPZ9uIc9g/dRsil4jS6JbixNbvaCp/kisFE6 PNfYXS1isF0U615v9+Qn5OwUVedt7+nkVrtRoCEaH3omvX39TSd9Z0zAF83P+6OtK9wI QEPUSyPggPOgHDgE+9YSV/jvEMIT5qsYgDbLu2Hljt38ufmfcuAPICHt7a6wAsNFobqd jFHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=v8irJ+ek+uNFJgrtcactDB+kF82dKBTFW5bVliGHFGw=; b=ho2Xpdn2PlSKSA5GbyKfJb+52kKyeivDg2qpMOUZpN3KfXeUz7hZ4aR76/uqV4PE3T i3bLqFRbfWKOJEM5GgTifqhVLEIgjkes1xqBgO/Ecx9Kj97j4/B5XCACaLMcn3USsSy5 WLrFV74O5/q/QepNDAE5mN+zyb8pQzk5CQcEcRPRKvFmQFA53mfljltFoGcHOUyyglEk JI/lTket7y34PWKLNZQOWwfCoZcazN/wzHLX35HrfDmK9YScPNw/J+o6iPQbzz2dH1n/ ZXRK8rDgEJ25r/JCK9AOlf9qSgG41wbfRnxr+ltEI/Y95Wts1ZgqDnYhCWOyKXQf8W3f RvOg== X-Gm-Message-State: APjAAAV35QJuEqhw/B4aTmalMwFaV5hmv0kjjkWmfCY6mzNg8egmge5J K46ZL6kFvoacDbpPT0xcgcfQxJaV1ow= X-Google-Smtp-Source: APXvYqwjBf+xNovI61WzZAO4L/FRrkXiRLxXppFJi0QHu/yBg4n10zt3YZZTU3BLF/GKXfD7cDcxcg== X-Received: by 2002:a1c:cf4e:: with SMTP id f75mr13064443wmg.49.1569245388351; Mon, 23 Sep 2019 06:29:48 -0700 (PDT) Original-Received: from [192.168.0.133] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id d4sm10017690wrq.22.2019.09.23.06.29.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Sep 2019 06:29:47 -0700 (PDT) In-Reply-To: <4d136a64-b3f4-24e4-1f28-c22a59468295@jacksonrayhamilton.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::334 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240263 Archived-At: On 23.09.2019 3:50, Jackson Ray Hamilton wrote: > Some tips if you decide to help: you mentioned an AST, but there isn’t > one.  Parsing starts in js-syntax-propertize.  Years ago, Sebastian > Wiesner wrote some blog articles explaining how syntax highlighting > worked in Emacs, but he’s since removed those posts from his blog and > they aren’t available on Internet Archive. Maybe he will provide you > with the articles if you ask him for: Even if he doesn't, though, that's no reason to give up. For instance, this article seems to give a decent introduction: http://www.modernemacs.com/post/major-mode-part-1/ And there's also the manual, existing examples in the code, as well as this mailing list (as Emacs Help too) if you still have questions.