From d7f9d8e157c7139d8396efe40f072c93c73608e3 Mon Sep 17 00:00:00 2001 From: belliash Date: Sun, 12 Aug 2018 22:04:47 +0200 Subject: [PATCH] Add missing 'finally' keyword. --- engine/lexer.c | 1 + include/ph7int.h | 1 + 2 files changed, 2 insertions(+) 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 */