@@ -267,7 +267,8 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
267267 }
268268 }
269269 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" ;
271272 var cTypes = "int long char short double float unsigned signed void size_t ptrdiff_t" ;
272273
273274 function cppHook ( stream , state ) {
@@ -396,9 +397,9 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
396397
397398 def ( [ "text/x-c++src" , "text/x-c++hdr" ] , {
398399 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 " +
400401 "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 " +
402403 "alignas alignof constexpr decltype nullptr noexcept thread_local final " +
403404 "static_assert override" ) ,
404405 types : words ( cTypes + " bool wchar_t" ) ,
@@ -724,7 +725,7 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
724725
725726 def ( "text/x-nesc" , {
726727 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 " +
728729 "implementation includes interface module new norace nx_struct nx_union post provides " +
729730 "signal task uses abstract extends" ) ,
730731 types : words ( cTypes ) ,
@@ -736,10 +737,11 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
736737
737738 def ( "text/x-objectivec" , {
738739 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" ) ,
741743 types : words ( cTypes ) ,
742- atoms : words ( "YES NO NULL NILL ON OFF true false" ) ,
744+ atoms : words ( "YES NO NULL Nil nil true false" ) ,
743745 isReservedIdentifier : cIsReservedIdentifier ,
744746 hooks : {
745747 "@" : function ( stream ) {
0 commit comments