all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* changing syntax for a forward slash
@ 2006-07-02 22:57 Tim Johnson
  2006-07-05 16:47 ` Kevin Rodgers
       [not found] ` <mailman.3789.1152118126.9609.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Tim Johnson @ 2006-07-02 22:57 UTC (permalink / raw)


Hello:
I am working with a major mode derived from 'scheme-mode.
The forward slash '/' has a significance in the rebol language
that is similar to '.' in python or '->' in perl. 
In rebol. '/' is referred to as the "refinement operator".

for the following function call: append/only
I would like 
append 
to be highlighted as a keyword
but not 
only

The output from describe-syntax shows the following entry:
- .. /			_ 	which means: symbol

I take this to mean that the syntax table stores '/' as
a part of the symbol syntax class.

I use the following form as part of font-lock-keywords:
(,(concat "\\<\\(" rebol-functions-regexp "\\)\\>") 
  0 font-lock-keyword-face)

I am unclear as to whether I should be modifying the syntax
table or whether I should be modifying the last argument to
concat 

Any help and/or pointers to documentation is welcome.
Thanks

-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-06 17:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-02 22:57 changing syntax for a forward slash Tim Johnson
2006-07-05 16:47 ` Kevin Rodgers
     [not found] ` <mailman.3789.1152118126.9609.help-gnu-emacs@gnu.org>
2006-07-06 16:56   ` Tim Johnson
2006-07-06 17:24     ` Johan Bockgård

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.