File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -315,6 +315,8 @@ patterns are available:
315
315
316
316
- `java` suitable for source code in the Java language.
317
317
318
+ - `objc` suitable for source code in the Objective-C language.
319
+
318
320
- `pascal` suitable for source code in the Pascal/Delphi language.
319
321
320
322
- `php` suitable for source code in the PHP language.
Original file line number Diff line number Diff line change @@ -1429,6 +1429,16 @@ static const struct funcname_pattern_entry builtin_funcname_pattern[] = {
1429
1429
"!^[ \t]*(catch|do|for|if|instanceof|new|return|switch|throw|while)\n"
1430
1430
"^[ \t]*(([ \t]*[A-Za-z_][A-Za-z_0-9]*){2,}[ \t]*\\([^;]*)$" ,
1431
1431
REG_EXTENDED },
1432
+ { "objc" ,
1433
+ /* Negate C statements that can look like functions */
1434
+ "!^[ \t]*(do|for|if|else|return|switch|while)\n"
1435
+ /* Objective-C methods */
1436
+ "^[ \t]*([-+][ \t]*\\([ \t]*[A-Za-z_][A-Za-z_0-9* \t]*\\)[ \t]*[A-Za-z_].*)$\n"
1437
+ /* C functions */
1438
+ "^[ \t]*(([ \t]*[A-Za-z_][A-Za-z_0-9]*){2,}[ \t]*\\([^;]*)$\n"
1439
+ /* Objective-C class/protocol definitions */
1440
+ "^(@(implementation|interface|protocol)[ \t].*)$" ,
1441
+ REG_EXTENDED },
1432
1442
{ "pascal" ,
1433
1443
"^((procedure|function|constructor|destructor|interface|"
1434
1444
"implementation|initialization|finalization)[ \t]*.*)$"
You can’t perform that action at this time.
0 commit comments