--- a/playground/codemirror.jsonld.js Tue Oct 22 14:30:05 2013 -0400
+++ b/playground/codemirror.jsonld.js Tue Oct 22 14:59:32 2013 -0400
@@ -189,10 +189,11 @@
"set|reverse|index|base|vocab|graph",
ldEndQuote = "(?=\")",
ldKeywordRE = new RegExp("^@(" + ldKeywords + ")" + ldEndQuote),
- ldUriRE = new RegExp("https?://[^\"]+" + ldEndQuote);
+ ldUriRE = new RegExp("https?://[^\"]+" + ldEndQuote),
+ i = ldAtomicTypes.length;
- for(var atom in ldAtomicTypes){
- atomicTypes[atom] = true;
+ while(i--){
+ atomicTypes[ldAtomicTypes[i]] = true;
}
jsTokenString = function(quote){