aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-12-22 20:52:19 +0200
committerMihai Bazon <mihai@bazon.net>2013-12-22 20:52:19 +0200
commitaa9de76370ee83883f19a6d410ad8207d0fe1769 (patch)
treef00b9cd475804b2941b4259fb1aa41a885db30f7 /lib
parent5a083a938d8d6eca5c43a5edd1921906299df18f (diff)
downloadtracifyjs-aa9de76370ee83883f19a6d410ad8207d0fe1769.tar.gz
tracifyjs-aa9de76370ee83883f19a6d410ad8207d0fe1769.zip
Mark `yield` as reserved word. Close #375.
Diffstat (limited to 'lib')
-rw-r--r--lib/parse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 4933649c..1a3895d9 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -46,7 +46,7 @@
var KEYWORDS = 'break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with';
var KEYWORDS_ATOM = 'false null true';
-var RESERVED_WORDS = 'abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized this throws transient volatile'
+var RESERVED_WORDS = 'abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized this throws transient volatile yield'
+ " " + KEYWORDS_ATOM + " " + KEYWORDS;
var KEYWORDS_BEFORE_EXPRESSION = 'return new delete throw else case';