fork
This commit is contained in:
4
langs/objc/constant.txt
Normal file
4
langs/objc/constant.txt
Normal file
@ -0,0 +1,4 @@
|
||||
false
|
||||
true
|
||||
YES
|
||||
NO
|
22
langs/objc/modifier.txt
Normal file
22
langs/objc/modifier.txt
Normal file
@ -0,0 +1,22 @@
|
||||
strong
|
||||
weak
|
||||
__weak
|
||||
volatile
|
||||
readonly
|
||||
readwrite
|
||||
nonatomic
|
||||
register
|
||||
restrict
|
||||
default
|
||||
bycopy
|
||||
oneway
|
||||
atomic
|
||||
extern
|
||||
inline
|
||||
static
|
||||
assign
|
||||
const
|
||||
inout
|
||||
byref
|
||||
out
|
||||
in
|
4
langs/objc/modifier_at.txt
Normal file
4
langs/objc/modifier_at.txt
Normal file
@ -0,0 +1,4 @@
|
||||
@synchronized
|
||||
@protected
|
||||
@private
|
||||
@public
|
29
langs/objc/objc.txt
Normal file
29
langs/objc/objc.txt
Normal file
@ -0,0 +1,29 @@
|
||||
### OBJECTIVE-C LANGUAGE ###
|
||||
|
||||
# ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
|
||||
|
||||
NAME Objective-C
|
||||
VERSION 1.8.1
|
||||
|
||||
COMMENT (?default)
|
||||
PREPROCESSOR (?default)
|
||||
STRING (@?(?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)')
|
||||
NOTATION \<\ ?[a-zA-Z]+\ ?\>
|
||||
|
||||
STATEMENT (?alt:statement_at.txt)\b|\b(?alt:statement.txt)\b
|
||||
RESERVED (?alt:reserved_at.txt)\b|\b(?alt:reserved.txt)\b
|
||||
TYPE \b(?alt:type.txt)\b|(?-i:\b[A-Z][\w]+)
|
||||
# |(\b[a-z_]\w+\b\s+(?=\b[a-z_][\w]+\b(?!\s*\:)))
|
||||
MODIFIER (?alt:modifier_at.txt)\b|\b(?alt:modifier.txt)\b
|
||||
|
||||
CONSTANT (?default)|\b(?alt:constant.txt)\b
|
||||
ENTITY (\b[a-z_]\w*\b(?=\s*\([^\)]*\)))|(\b[a-z_]\w+\b\s+(?=\b[a-z_][\w]+\b(?!\s*\:)))
|
||||
FUNC:ENTITY \s*(\b\w+\b\s*(?=:[^;]*[\{;])|(?<=\])\s*\w+)
|
||||
#FUNC:ENTITY
|
||||
POINTER_TYPE:TYPE (\b[a-z_]\w*\s*(?=\*)|\*(?=\s*\)))
|
||||
RETURN:TYPE \b\w+\b(?=\s*\)\s*\w+\s*[:;\{])
|
||||
|
||||
VARIABLE (?default)|(\*[a-z]\w*)|((?<=\[)[a-z]\w*)|(:\s*([a-z]\w*))|([a-z]\w*)
|
||||
IDENTIFIER (?<!\))(?default)
|
||||
OPERATOR (?default)
|
||||
SYMBOL (?default)
|
8
langs/objc/reserved.txt
Normal file
8
langs/objc/reserved.txt
Normal file
@ -0,0 +1,8 @@
|
||||
autorelease
|
||||
release
|
||||
typedef
|
||||
retain
|
||||
sizeof
|
||||
alloc
|
||||
super
|
||||
self
|
1
langs/objc/reserved_at.txt
Normal file
1
langs/objc/reserved_at.txt
Normal file
@ -0,0 +1 @@
|
||||
@encode
|
10
langs/objc/statement.txt
Normal file
10
langs/objc/statement.txt
Normal file
@ -0,0 +1,10 @@
|
||||
continue
|
||||
return
|
||||
switch
|
||||
break
|
||||
while
|
||||
case
|
||||
else
|
||||
goto
|
||||
do
|
||||
if
|
13
langs/objc/statement_at.txt
Normal file
13
langs/objc/statement_at.txt
Normal file
@ -0,0 +1,13 @@
|
||||
@implementation
|
||||
@synthesize
|
||||
@interface
|
||||
@protocol
|
||||
@selector
|
||||
@property
|
||||
@finally
|
||||
@dynamic
|
||||
@throw
|
||||
@catch
|
||||
@class
|
||||
@try
|
||||
@end
|
22
langs/objc/type.txt
Normal file
22
langs/objc/type.txt
Normal file
@ -0,0 +1,22 @@
|
||||
_Imaginery
|
||||
Protocol
|
||||
unsigned
|
||||
_Complex
|
||||
double
|
||||
struct
|
||||
signed
|
||||
short
|
||||
float
|
||||
_Bool
|
||||
Class
|
||||
union
|
||||
char
|
||||
long
|
||||
NULL
|
||||
BOOL
|
||||
enum
|
||||
void
|
||||
int
|
||||
nil
|
||||
SEL
|
||||
id
|
Reference in New Issue
Block a user