diff --git a/grammars/mediawiki.js b/grammars/mediawiki.js index 5400f5c..e75e5ae 100644 --- a/grammars/mediawiki.js +++ b/grammars/mediawiki.js @@ -22,7 +22,7 @@ var mediawiki = { 'i', 'nowiki', 'nowikiword', - rr.MultiLineText(), + rr.MultiLineText() )], 'wikidoc': [rr.ZeroOrMore('wikichunk')], }; diff --git a/include.yaml b/include.yaml new file mode 100644 index 0000000..cbdbff6 --- /dev/null +++ b/include.yaml @@ -0,0 +1,8 @@ +handlers: +- url: /recentrunes + static_dir: recentrunes + secure: always + http_headers: + X-Frame-Options: DENY + X-Content-Type-Options: nosniff + Strict-Transport-Security: max-age=31536000; includeSubDomains diff --git a/recentrunes.js b/recentrunes.js new file mode 100644 index 0000000..27eb41a --- /dev/null +++ b/recentrunes.js @@ -0,0 +1,91 @@ +var rr = {}; + +rr.Literal_ = function(value) { +}; + +rr.Literal = function(value) { + return (rr.Literal.cache[value] || + (rr.Literal.cache[value] = new rr.Literal_(value))); +}; +rr.Literal.cache = {}; + + +rr.Ref_ = function(key) { +}; + +rr.Ref = function(key) { + return (rr.Ref.cache[key] || + (rr.Ref.cache[key] = new rr.Ref_(key))); +}; +rr.Ref.cache = {}; + + +rr.EndOfLine_ = function() { +}; + +rr.EndOfLine = function() { + return rr.EndOfLine.cache; +} +rr.EndOfLine.cache = new rr.EndOfLine_(); + + +rr.MultiLineText_ = function() { +}; + +rr.MultiLineText = function() { + return rr.MultiLineText.cache; +}; +rr.MultiLineText.cache = new rr.MultiLineText_(); + + +rr.Or_ = function(options) { +}; + +rr.Or = function() { + return new rr.Or_(arguments); +}; + + +rr.SingleLineText_ = function() { +}; + +rr.SingleLineText = function() { + return rr.SingleLineText.cache; +}; +rr.SingleLineText.cache = new rr.SingleLineText_(); + + +rr.StartOfLine_ = function() { +}; + +rr.StartOfLine = function() { + return rr.StartOfLine.cache; +}; +rr.StartOfLine.cache = new rr.StartOfLine_(); + + +rr.WordText_ = function() { +}; + +rr.WordText = function() { + return rr.WordText.cache; +}; +rr.WordText.cache = new rr.WordText_(); + + +rr.ZeroOrMore_ = function(key) { +}; + +rr.ZeroOrMore = function(key) { + return (rr.ZeroOrMore.cache[key] || + (rr.ZeroOrMore.cache[key] = new rr.ZeroOrMore_(key))); +}; +rr.ZeroOrMore.cache = {}; + + +var RecentRunes = function(dictionary) { + this.dictionary_ = dictionary; +}; + +RecentRunes.prototype.parse = function(nodeType, input) { +}; diff --git a/test.html b/test.html new file mode 100644 index 0000000..ca57175 --- /dev/null +++ b/test.html @@ -0,0 +1,15 @@ + +
+ +