From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bois Francois-Xavier Newsgroups: gmane.emacs.devel Subject: Re: web-mode.el Date: Wed, 13 Jun 2012 13:43:18 +0200 Message-ID: References: <874nqfslig.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1339599835 3659 80.91.229.3 (13 Jun 2012 15:03:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2012 15:03:55 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 13 17:03:53 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sep6v-0000J5-II for ged-emacs-devel@m.gmane.org; Wed, 13 Jun 2012 17:03:53 +0200 Original-Received: from localhost ([::1]:52758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sep6v-0005jf-E5 for ged-emacs-devel@m.gmane.org; Wed, 13 Jun 2012 11:03:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SelzK-0007oA-Vf for emacs-devel@gnu.org; Wed, 13 Jun 2012 07:43:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SelzE-0005lG-Pj for emacs-devel@gnu.org; Wed, 13 Jun 2012 07:43:50 -0400 Original-Received: from mail-gg0-f169.google.com ([209.85.161.169]:64057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SelzB-0005kQ-Es; Wed, 13 Jun 2012 07:43:41 -0400 Original-Received: by ggm4 with SMTP id 4so368396ggm.0 for ; Wed, 13 Jun 2012 04:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=z2YdbgYnYtClKsXFyFgbOkT2/RFaOoa1pa0I3JWgu08=; b=LRgqRl10QfWuU3DYih7uwd7+7DWrIG24R1v8o235qTjSDKMByIASCE6TcpiPHntyab 5qzc+kfIfk2rA47plHW7C3ggs2HXVS++jWjO3OHEIWoCCUUqvELIyxOIPLZ3M1ONJX7S Y6YOuzadmdcmpawCw/o98JJQ7jYNBB2GMVtNbmDJhy1mzdViFF1v/5s6dzF8unfcLX6g JfOGphFeTJFjdO9lj46fm5tlKxRd5Ov7LZXdqyZKxe9e2rPXObqve6oO8Gop9s1mex/d U3q4qjEmzjHxfmEnSFs2eJrW0Xs4HlQ3nijK4+izbHLJ1pmmissMIOcIKOZoxcYpn5sk O4OQ== Original-Received: by 10.50.159.231 with SMTP id xf7mr10311093igb.7.1339587818570; Wed, 13 Jun 2012 04:43:38 -0700 (PDT) Original-Received: by 10.50.214.36 with HTTP; Wed, 13 Jun 2012 04:43:18 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.161.169 X-Mailman-Approved-At: Wed, 13 Jun 2012 11:03:51 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150926 Archived-At: > It would be very nice if those functions for PHP would be available as > a major mode. Then it could immediately be used in a lot of other > combinations with nXhtml/MuMaMo. > > I guess you have written the parsing functions so that they do not > cross the chunk boundaries. Or, do I misunderstand that? If you have > done that then perhaps a major mode for PHP could use that and make it > available in some way to multi major modes frameworks? But I think you would be disappointed by the few cases I handle for PHP. I have written a mode for templates. In an HTML template I don't expect people to declare function, declare classes, use exceptions etc. All those cases are not properly handled by my mode. I don' really "parse" PHP code ... it is more rules like ... "if the previous line ends with { then I indent". By contrast, the parsing is much stronger/powerful for HTML.