! Syntax Highlighting Patterns for Objective-C ! Contributed by David Stes (stes@can.nl) ! ! In NEdit Version 5.0.1 and beyond, load this pattern by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. ! ! In version 5.0, without -import, you must edit your .nedit file by hand and ! add the contents of each resource below to the corresponding list in your ! .nedit file. Be sure to separate new entries with \n, and continue resource ! strings by escaping all newlines within a resource value with \ (backslash), ! leaving only the last line of the resource value not ending in \. ! nedit.highlightPatterns: \ Objective-C:1:0 {\n\ comment:\"/\\*\":\"\\*/\"::Comment::\n\ cplus comment:\"//\":\"$\"::Comment::\n\ string:\"\"\"\":\"\"\"\":\"\\n\":String::\n\ preprocessor line:\"^[ \t]*#\":\"$\"::Preprocessor::\n\ string escape chars:\"\\\\(.|\\n)\":::String1:string:\n\ preprocessor esc chars:\"\\\\(.|\\n)\":::Preprocessor1:preprocessor line:\n\ preprocessor comment:\"/\\*\":\"\\*/\"::Comment:preprocessor line:\n\ character constant:\"'\":\"'\":\"[^\\\\][^']\":Character Const::\n\ numeric constant:\"<((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?>\":::Numeric Const::D\n\ storage keyword:\"<(const|extern|auto|register|static|unsigned|signed|volatile|char|double|float|int|long|short|void|typedef|struct|union|enum)>\":::Storage Type::D\n\ keyword:\"<(return|goto|if|else|case|default|switch|break|continue|while|do|for|sizeof)>\":::Keyword::D\n\ Objective-C keyword:\"<(self|super)>\":::Keyword::D\n\ Objective-C types:\"<(id|BOOL|SEL)>\":::Storage Type::D\n\ Objective-C constants:\"<(nil|YES|NO|NULL)>\":::Numeric Const::D\n\ Objective-C lines:\"<(@interface|@end|@implementation|@selector|@defs|@protocol)>\":::Flag::D\n\ braces:\"[{}]\":::Keyword::D} nedit.languageModes:\ Objective-C:.m .mm::::::\".,/\\`'!|@#%^&*()-=+{}[]\"\":;<>?~\"\n\