[Top][All Lists]

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

Re: asm mode doesn't recognize gas comments...

From: Andreas Politz
Subject: Re: asm mode doesn't recognize gas comments...
Date: Sat, 23 Jan 2010 15:18:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Andreas Politz <address@hidden> writes:

> Brendan Miller <address@hidden> writes:
>> By default it seems that asm mode recognizes MASM style comments
>> (starting with ;), but not gas style comments (starting with #). A
>> little weird for a GNU program running on Linux...
>> Anyway, according to asm modes docs:
>> asm-comment-char can be set. So I added this to my .emacs:
>> (set 'asm-comment-char "#")
>> This makes ; stop highlighting like a comment, but doesn't make # do
>> anything. Am I doing anything obviously wrong? Is there some mode file
>> somewhere that actually handles the GNU assembler syntax?
>> Brendan
> (setq asm-comment-char ?#)
> It think it has to be a character (not a string).
> -ap

(setq asm-comment-char ?\#)

Better escape the lisp comment char.


reply via email to

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