unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Raffael Herzog <devnull@raffael.ch>
Subject: ObjC mode fontification and formatting
Date: Tue, 15 Apr 2003 20:12:21 +0200	[thread overview]
Message-ID: <87of37fx4q.fsf@mail.raffael.ch> (raw)

Hi,

Playing around with GNUstep I also started Objective-C pro-
gramming. Now, there are some issues with cc-mode there:

,----
| -(void) doSomething: (NSString*) str1
|                with: (NSString*) str2
| {
|     [anObject doSomething: str1
|               with: str2];  // 'with' is fontified as
|                             // function definition, 'str2'
|                             // as variable
| }
`----

But I'd like Emacs to do the following:

,----
| -(void) doSomething: (NSString*) str
|                with: (NSString*) str2
| {
|     [anObject doSomething: str1   // fontify 'anObject' as
|                                   // variable? (not sure yet)
|                      with: str2]; // don't fontify 'with'
|                                   // nor 'str2'
|    // note the alignment ^
| }
`----

How can this be done?


TIA,

   Raffi


-- 
=> Neu im Usenet? Fragen?    http://www.use-net.ch/usenet_intro_de.html <=
  The difference between theory and practice is that in theory, there is
                 no difference, but in practice, there is.
Raffael Herzog - herzog@raffael.ch - http://www.raffael.ch - ICQ #67961355

             reply	other threads:[~2003-04-15 18:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-15 18:12 Raffael Herzog [this message]
2003-04-16  9:29 ` ObjC mode fontification and formatting Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87of37fx4q.fsf@mail.raffael.ch \
    --to=devnull@raffael.ch \
    --cc=usenet-reply@raffael.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).