1 /* See license.txt for terms of usage */
  2 
  3 define([
  4     "firebug/lib/trace"
  5 ],
  6 function(FBTrace) {
  7 
  8 // ********************************************************************************************* //
  9 // Debug APIs
 10 
 11 var Keywords = {};
 12 
 13 // ************************************************************************************************
 14 // JavaScript Parsing
 15 
 16 Keywords.jsKeywords =
 17 {
 18     "var": 1,
 19     "const": 1,
 20     "class": 1,
 21     "extends": 1,
 22     "import": 1,
 23     "namespace": 1,
 24     "function": 1,
 25     "debugger": 1,
 26     "new": 1,
 27     "delete": 1,
 28     "null": 1,
 29     "undefined": 1,
 30     "true": 1,
 31     "false": 1,
 32     "void": 1,
 33     "typeof": 1,
 34     "instanceof": 1,
 35     "break": 1,
 36     "continue": 1,
 37     "return": 1,
 38     "throw": 1,
 39     "try": 1,
 40     "catch": 1,
 41     "finally": 1,
 42     "if": 1,
 43     "else": 1,
 44     "for": 1,
 45     "while": 1,
 46     "do": 1,
 47     "with": 1,
 48     "switch": 1,
 49     "case": 1,
 50     "default": 1
 51 };
 52 
 53 Keywords.isJavaScriptKeyword = function(name)
 54 {
 55     return name in Keywords.jsKeywords;
 56 };
 57 
 58 // ********************************************************************************************* //
 59 
 60 return Keywords;
 61 
 62 // ********************************************************************************************* //
 63 });
 64