From: Leo <sdl.web@gmail.com>
To: Aleksandr Skobelev <al.skobelev@gmail.com>
Cc: 5953@debbugs.gnu.org
Subject: bug#5953: 23.1.95; objc-mode doesn't fontify Objective-C 2.0 keywords @syntesize and @property correctly
Date: Wed, 22 Aug 2012 17:39:50 +0800 [thread overview]
Message-ID: <m2sjbfi7tl.fsf@gmail.com> (raw)
In-Reply-To: <m21uizk3ee.fsf@gmail.com> (Leo's message of "Wed, 22 Aug 2012 11:32:25 +0800")
[-- Attachment #1: Type: text/plain, Size: 620 bytes --]
On 2012-08-22 11:32 +0800, Leo wrote:
> Here is a list of OjbC2.0 directives with annotations:
>
> http://maniacdev.com/cheatsheetobjccd.pdf
>
> Leo
I have compiled a patch to improve support for Objective C.
I am not sure where to add the following keywords so they live in
c-other-decl-kwds for now. Please review the patch. Thanks.
1. @property
: @property (attributes) Type propertyName;
2. @dynamic
: @dynamic aProperty, bProperty;
3. @synthesize
: @synthesize aProperty, bProperty, cProperty=_ivar;
4. @compatibility_alias
: @compatibility_alias AliasClassName ExistingClassName;
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-ObjC-2.0-directives-support.patch --]
[-- Type: text/x-patch, Size: 2116 bytes --]
From 3ea4329978ebe2e5cb9d4bfd1e544277cf8e0352 Mon Sep 17 00:00:00 2001
From: Leo Liu <sdl.web@gmail.com>
Date: Wed, 22 Aug 2012 16:54:18 +0800
Subject: [PATCH] Add ObjC 2.0 directives support
---
lisp/progmodes/cc-langs.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index 78be8ac2..4aed2048 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -1884,7 +1884,8 @@ (c-lang-defconst c-other-decl-kwds
`c-<>-type-kwds', or `c-<>-arglist-kwds' then the associated clauses
will be handled."
t nil
- objc '("@class" "@end" "@defs")
+ objc '("@class" "@defs" "@end" "@property" "@dynamic" "@synthesize"
+ "@compatibility_alias")
java '("import" "package")
pike '("import" "inherit"))
@@ -2006,7 +2007,8 @@ (c-lang-defconst c-protection-kwds
"Access protection label keywords in classes."
t nil
c++ '("private" "protected" "public")
- objc '("@private" "@protected" "@public"))
+ objc '("@private" "@protected" "@package" "@public"
+ "@required" "@optional"))
(c-lang-defconst c-block-decls-with-vars
"Keywords introducing declarations that can contain a block which
@@ -2176,7 +2178,7 @@ (c-lang-defconst c-block-stmt-1-kwds
"Statement keywords followed directly by a substatement."
t '("do" "else")
c++ '("do" "else" "try")
- objc '("do" "else" "@finally" "@try")
+ objc '("do" "else" "@finally" "@try" "@autoreleasepool")
java '("do" "else" "finally" "try")
idl nil)
@@ -2292,7 +2294,8 @@ (c-lang-defconst c-constant-kwds
t nil
(c c++) '("NULL" ;; Not a keyword, but practically works as one.
"false" "true") ; Defined in C99.
- objc '("nil" "Nil" "YES" "NO" "NS_DURING" "NS_HANDLER" "NS_ENDHANDLER")
+ objc '("nil" "Nil" "YES" "NO" "IBAction" "IBOutlet"
+ "NS_DURING" "NS_HANDLER" "NS_ENDHANDLER")
idl '("TRUE" "FALSE")
java '("true" "false" "null") ; technically "literals", not keywords
pike '("UNDEFINED")) ;; Not a keyword, but practically works as one.
--
1.7.12
next prev parent reply other threads:[~2012-08-22 9:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-15 15:00 bug#5953: 23.1.95; objc-mode doesn't fontify Objective-C 2.0 keywords @syntesize and @property correctly Aleksandr Skobelev
2012-08-22 3:32 ` Leo
2012-08-22 9:39 ` Leo [this message]
2019-11-01 16:11 ` Lars Ingebrigtsen
2019-11-23 13:14 ` Lars Ingebrigtsen
2020-05-04 0:53 ` Stefan Kangas
2020-05-24 19:24 ` Alan Mackenzie
2020-05-24 19:40 ` Dmitry Gutov
2020-05-25 4:34 ` Richard Stallman
2020-05-25 4:52 ` Paul Smith
2020-05-26 4:11 ` Richard Stallman
2020-05-26 10:23 ` Dmitry Gutov
2020-05-26 18:31 ` Alan Mackenzie
2020-05-26 20:03 ` Paul Smith
2020-05-26 20:21 ` Alan Mackenzie
[not found] ` <8414a67694f5739a90d84d620cff141bc322a415.camel@gnu.org>
2020-05-26 20:23 ` Dmitry Gutov
2020-05-27 1:12 ` Leo Liu
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=m2sjbfi7tl.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=5953@debbugs.gnu.org \
--cc=al.skobelev@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).