unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to implement comments that always start at the beginning of a line
@ 2006-10-24  9:40 Philipp
  0 siblings, 0 replies; 3+ messages in thread
From: Philipp @ 2006-10-24  9:40 UTC (permalink / raw)



Hi,

I'm writing my own Emacs major mode for a language in with all comments
start with an starisk at the beginning of a line. Unfortunately, I haven't
found a way to implement this in the syntax table. 

I tried to do a two-character comment sequence, with the first character
being a newline and the 2nd character an asterisk. This would neglect
comments in the first line of a buffer, but it would be better than nothing.
The lines I used were

		(modify-syntax-entry ?\n ">1" form-mode-syntax-table)
		(modify-syntax-entry ?* ".2" form-mode-syntax-table)

but that didn't work the way I expected. Does anybody have an idea how to
solve this?

Thanks,
Philipp
-- 
View this message in context: http://www.nabble.com/How-to-implement-comments-that-always-start-at-the-beginning-of-a-line-tf2500236.html#a6969840
Sent from the Emacs - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.192.1161688642.27805.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2006-10-24 16:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-24  9:40 How to implement comments that always start at the beginning of a line Philipp
     [not found] <mailman.192.1161688642.27805.help-gnu-emacs@gnu.org>
2006-10-24 15:07 ` rgb
2006-10-24 16:01 ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).