@@ -267,7 +267,8 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
267
267
}
268
268
}
269
269
var cKeywords = "auto if break case register continue return default do sizeof " +
270
- "static else struct switch extern typedef union for goto while enum const volatile" ;
270
+ "static else struct switch extern typedef union for goto while enum const " +
271
+ "volatile inline restrict asm fortran" ;
271
272
var cTypes = "int long char short double float unsigned signed void size_t ptrdiff_t" ;
272
273
273
274
function cppHook ( stream , state ) {
@@ -396,9 +397,9 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
396
397
397
398
def ( [ "text/x-c++src" , "text/x-c++hdr" ] , {
398
399
name : "clike" ,
399
- keywords : words ( cKeywords + " asm dynamic_cast namespace reinterpret_cast try explicit new " +
400
+ keywords : words ( cKeywords + " dynamic_cast namespace reinterpret_cast try explicit new " +
400
401
"static_cast typeid catch operator template typename class friend private " +
401
- "this using const_cast inline public throw virtual delete mutable protected " +
402
+ "this using const_cast public throw virtual delete mutable protected " +
402
403
"alignas alignof constexpr decltype nullptr noexcept thread_local final " +
403
404
"static_assert override" ) ,
404
405
types : words ( cTypes + " bool wchar_t" ) ,
@@ -724,7 +725,7 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
724
725
725
726
def ( "text/x-nesc" , {
726
727
name : "clike" ,
727
- keywords : words ( cKeywords + "as atomic async call command component components configuration event generic " +
728
+ keywords : words ( cKeywords + " as atomic async call command component components configuration event generic " +
728
729
"implementation includes interface module new norace nx_struct nx_union post provides " +
729
730
"signal task uses abstract extends" ) ,
730
731
types : words ( cTypes ) ,
@@ -736,10 +737,11 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
736
737
737
738
def ( "text/x-objectivec" , {
738
739
name : "clike" ,
739
- keywords : words ( cKeywords + "inline restrict BOOL Class bycopy byref id IMP in inout nil oneway out " +
740
- "Protocol SEL self super atomic nonatomic retain copy readwrite readonly" ) ,
740
+ keywords : words ( cKeywords + " bycopy byref in inout oneway out self " +
741
+ "super atomic nonatomic retain copy readwrite readonly " +
742
+ "strong weak assign typeof nullable nonnull instancetype" ) ,
741
743
types : words ( cTypes ) ,
742
- atoms : words ( "YES NO NULL NILL ON OFF true false" ) ,
744
+ atoms : words ( "YES NO NULL Nil nil true false" ) ,
743
745
isReservedIdentifier : cIsReservedIdentifier ,
744
746
hooks : {
745
747
"@" : function ( stream ) {
0 commit comments