diff --git a/engine/lexer.c b/engine/lexer.c index ff7570a..fa3270d 100644 --- a/engine/lexer.c +++ b/engine/lexer.c @@ -588,6 +588,7 @@ static sxu32 KeywordCode(const char *z, int n) { {"case", PH7_KEYWORD_CASE}, {"self", PH7_KEYWORD_SELF}, {"final", PH7_KEYWORD_FINAL}, + {"finally", PH7_KEYWORD_FINALLY}, {"list", PH7_KEYWORD_LIST}, {"static", PH7_KEYWORD_STATIC}, {"clone", PH7_KEYWORD_CLONE}, diff --git a/include/ph7int.h b/include/ph7int.h index e7e4d6d..e6c35e3 100644 --- a/include/ph7int.h +++ b/include/ph7int.h @@ -1482,6 +1482,7 @@ enum ph7_expr_id { #define PH7_KEYWORD_AS 33 /* as */ #define PH7_KEYWORD_CONTINUE 34 /* continue */ #define PH7_KEYWORD_EXIT 35 /* exit */ +#define PH7_KEYWORD_FINALLY 36 /* finally */ #define PH7_KEYWORD_IMPLEMENTS 39 /* implements */ #define PH7_KEYWORD_INCONCE 40 /* include_once */ #define PH7_KEYWORD_INCLUDE 41 /* include */