From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "spamfilteraccount@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: State-machine based syntax highlighting Date: 7 Dec 2006 03:56:07 -0800 Organization: http://groups.google.com Message-ID: <1165492567.864982.59980@79g2000cws.googlegroups.com> References: <1165472049.496117.320630@79g2000cws.googlegroups.com> <1165488825.132862.189340@79g2000cws.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1165495231 4723 80.91.229.10 (7 Dec 2006 12:40:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2006 12:40:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 07 13:40:29 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GsIY2-0007xn-2E for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 13:40:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsIY1-0004jV-KU for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 07:40:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!79g2000cws.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 194.88.55.211 Original-X-Trace: posting.google.com 1165492590 6645 127.0.0.1 (7 Dec 2006 11:56:30 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 7 Dec 2006 11:56:30 +0000 (UTC) In-Reply-To: <1165488825.132862.189340@79g2000cws.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.00 (X11; Linux i686; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 79g2000cws.googlegroups.com; posting-host=194.88.55.211; posting-account=b98TkQ0AAAD7PsllN8gfWGRoPOPWdnv4 Original-Xref: shelby.stanford.edu gnu.emacs.help:143712 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39314 Archived-At: Robert Thorpe wrote: > > In my view the real way to improve Emacs syntax highlighting would be > to make it based on parsing. > Yes, it could be better, though in this case emacs would rely on external tools doing the actual parsing, because I don't think the syntax parsing of every language should be reimplemented in elisp. That's not a big deal, since if I need to work with c files then usually have the c compiler installed. The only thing needed is a compiler for the given language which outputs syntax information for the source file. I don't know if GCC can do that.