Skip to content

Commit 2ea4988

Browse files
committed
Updated CSHARP_KEYWORDS
Updated `CSHARP_KEYWORDS` section with the new keywords introduced in C# 6. Based on the official list of [C# keywords](https://msdn.microsoft.com/en-us/library/x53a06bb.aspx).
1 parent 5e3b25c commit 2ea4988

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/prettify.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,12 @@ var prettyPrint;
108108
"instanceof,interface,null,native,package,strictfp,super,synchronized," +
109109
"throws,transient"];
110110
var CSHARP_KEYWORDS = [COMMON_KEYWORDS,
111-
"abstract,as,base,bool,by,byte,checked,decimal,delegate,descending," +
112-
"dynamic,event,finally,fixed,foreach,from,group,implicit,in,interface," +
113-
"internal,into,is,let,lock,null,object,out,override,orderby,params," +
114-
"partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong," +
115-
"unchecked,unsafe,ushort,var,virtual,where"];
111+
"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked," +
112+
"decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from," +
113+
"get,global,group,implicit,in,interface,internal,into,is,join,let,lock," +
114+
"null,object,out,override,orderby,params,partial,readonly,ref,remove," +
115+
"sbyte,sealed,select,set,stackalloc,string,uint,ulong,unchecked,unsafe," +
116+
"ushort,value,var,virtual,where,yield"];
116117
var COFFEE_KEYWORDS = "all,and,by,catch,class,else,extends,false,finally," +
117118
"for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then," +
118119
"throw,true,try,unless,until,when,while,yes";

0 commit comments

Comments
 (0)