emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax for ?= in sh-mode


From: Stefan
Subject: Re: syntax for ?= in sh-mode
Date: Sat, 18 Sep 2004 15:09:56 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin)

> + selects b + c
> * selects (b + c) * 5
> - selects (b + c) * 5 - 3
> and = selects all.

I've been meaning to add precedence annotations to syntax-tables (so you can
get precedence-aware sexp movement and/or indentation, like I did in my
sml-mode code).

One of the problems with such a change (and other similar changes that try
to give more detailed semantics to syntax-table elements) is that it
increases the number of cases where the syntax of a given element should be
different depending on context.  E.g. currently * in C is always
punctuation, but if you add precedence, you'll want to use different levels
depending on whether it's a multiplication or a dereference operation.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]