* parenthesis in ps-mode-syntax-table
@ 2004-03-15 8:00 Masatake YAMATO
2004-03-15 11:45 ` Peter Kleiweg
2004-03-15 13:47 ` Stefan Monnier
0 siblings, 2 replies; 3+ messages in thread
From: Masatake YAMATO @ 2004-03-15 8:00 UTC (permalink / raw)
Cc: emacs-devel
Hi,
I'm inspecting your ps-mode.el.
I wonder why parenthesis specifying string in postscript is not
in ps-mode-syntax-table. Any strong reason or am I missing something?
Regards,
Masatake YAMATO
Index: lisp/progmodes/ps-mode.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/ps-mode.el,v
retrieving revision 1.12
diff -u -r1.12 ps-mode.el
--- lisp/progmodes/ps-mode.el 1 Sep 2003 15:45:35 -0000 1.12
+++ lisp/progmodes/ps-mode.el 15 Mar 2004 07:47:41 -0000
@@ -450,6 +450,9 @@
(modify-syntax-entry ?\< "(>" ps-mode-syntax-table)
(modify-syntax-entry ?\> ")<" ps-mode-syntax-table)
+ (modify-syntax-entry ?\( "\"" ps-mode-syntax-table)
+ (modify-syntax-entry ?\) "\"" ps-mode-syntax-table)
+
(modify-syntax-entry ?\! "w " ps-mode-syntax-table)
(modify-syntax-entry ?\" "w " ps-mode-syntax-table)
(modify-syntax-entry ?\# "w " ps-mode-syntax-table)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: parenthesis in ps-mode-syntax-table
2004-03-15 8:00 parenthesis in ps-mode-syntax-table Masatake YAMATO
@ 2004-03-15 11:45 ` Peter Kleiweg
2004-03-15 13:47 ` Stefan Monnier
1 sibling, 0 replies; 3+ messages in thread
From: Peter Kleiweg @ 2004-03-15 11:45 UTC (permalink / raw)
Cc: emacs-devel
# aldus Masatake YAMATO :
> Hi,
>
> I'm inspecting your ps-mode.el.
> I wonder why parenthesis specifying string in postscript is not
> in ps-mode-syntax-table. Any strong reason or am I missing something?
The function of parentheses is too complex to be handled by the
syntax table.
--
Peter Kleiweg
http://www.let.rug.nl/~kleiweg/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: parenthesis in ps-mode-syntax-table
2004-03-15 8:00 parenthesis in ps-mode-syntax-table Masatake YAMATO
2004-03-15 11:45 ` Peter Kleiweg
@ 2004-03-15 13:47 ` Stefan Monnier
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2004-03-15 13:47 UTC (permalink / raw)
Cc: Peter Kleiweg, emacs-devel
> I wonder why parenthesis specifying string in postscript is not
> in ps-mode-syntax-table. Any strong reason or am I missing something?
[...]
> + (modify-syntax-entry ?\( "\"" ps-mode-syntax-table)
> + (modify-syntax-entry ?\) "\"" ps-mode-syntax-table)
The problem is that a (a(b)c) is a single string whereas with your changes
it would be considered as two strings separated by `b'.
If you want to add nestable strings to syntax-tables, you're welcome.
It would be useful in perl-mode as well.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-15 13:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-15 8:00 parenthesis in ps-mode-syntax-table Masatake YAMATO
2004-03-15 11:45 ` Peter Kleiweg
2004-03-15 13:47 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.