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: Daniel Pfeiffer
Subject: Re: syntax for ?= in sh-mode
Date: Fri, 17 Sep 2004 23:20:15 +0200

Saluton, Moin,

Richard Stallman <address@hidden> skribis:

>     I could however do the five syntax changes I proposed, if nobody
>     objects.
> 
>     $ word -> symbol
>     & symbol -> punctuation
>     * symbol -> punctuation
>     = symbol -> punctuation
>     @ punctuation -> symbol
>     | symbol -> punctuation
> 
> I am not sure * should be changed.  It might be useful
> that C-M-f would skip over something including *.
> The other 4 seem good.

Then ? should also be symbol, since the two serve a very similar function.

These fairly simple categorizations remind me: I often find myself wishing
there were several levels of glueiness when double clicking.  Maybe by adding
a digit to the syntax specifier, and everything that has the same digit or
lower, would be selected together.  E.g. in Shell:

var=server:/path/to/some_file.txt

_ or . select some_file.txt
/ selects /path/to/some_file.txt
: selects server:/path/to/some_file.txt
and = selects all.

namespace::class::name_of_method

_ selects name_of_method
: selects all

Sort of like operator precedence in programming languages -- it would be
fantastic if that could work too, surely not syntax based, but with a clever
parser:

a = (b + c) * 5 - 3;

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

coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer

-- 
lerne / learn / apprends / lär dig / ucz się    Esperanto:
                              http://lernu.net/




reply via email to

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