help-gnu-emacs
[Top][All Lists]
Advanced

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

modify-syntax-entry / syntax coloring


From: Dieter Demerre
Subject: modify-syntax-entry / syntax coloring
Date: Tue, 26 Sep 2000 11:36:54 +0200 (CEST)

-----BEGIN PGP SIGNED MESSAGE-----

L.S.,

I've defined two small syntax' for specific files.
one of them has to color @-following text on a line as comment (different
of other text).  quoted text (strings) should NOT be colored.
the other has the same specs except that comment is /* - */ delimited and
can be multi-lined.

Now I can disable the quote-coloring for the @-syntax, but this does not
work for the /* - */ syntax.  syntax coloring doesn't work there anymore.

Does anymody has any suggestion on this part ?

- --mode_croll.el---" works fine !! " -------------------------
(if ebp-croll-mode-syntax-table
    ()
  (let ((table (make-syntax-table)))
    (modify-syntax-entry ?@ "< a" table)
    (modify-syntax-entry ?\n "> a" table)
    (modify-syntax-entry ?\" " " table)
    (setq ebp-croll-mode-syntax-table table)
  )
)
- --------------------------------------------------------------

above extract works fine, but now in the following, modifying ?\" to " "
will cause syntax-coloring to be disabled, not mentioning it will cause
strings to be colored as strings again, which I don't want

- --mode_start.el---" won't work like I want it to "----------
(if ebp-star-mode-syntax-table
    ()
  (let ((table (make-syntax-table)))
    (modify-syntax-entry ?/ "  14" table)
    (modify-syntax-entry ?* "  23" table)
    (modify-syntax-entry ?\" " " table)
    (setq ebp-star-mode-syntax-table table)
  )
)
- --------------------------------------------------------------

******* Groetjes vanwege ***** Greetings From *******
Dieter Demerre - http://www.angelfire.com/de/ddemerre
  ddemerre@acm.org - ext.dieter.demerre@siemens.be

Although this private and confidential e-mail has been sent 
to you through a personal Siemens account, it does NOT 
represent any official opinion of Siemens.

If you are not the intended recipient of this e-mail and 
have received it in error, please notify the sender by 
replying with 'received in error' as the subject and then 
delete it from your mailbox.


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQCVAwUBOdBuO65coohL2ygZAQGzNAP/QjJ1yXro0OqAltXrhtmyIFXcaLz4wwEo
LmJeDmISazLB+1RXdaKhuWlq78GW4Iqpkj4qMjQor8TJBw2kcObuAzOC23nXOvOU
hr84XnWdUynbr8kCQg/EUqm2TnyN4BfwWuKZPovhTYYHq/L66qniXS7vH8EMQSy5
2EV+1CxIQvk=
=3ZgP
-----END PGP SIGNATURE-----





reply via email to

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