summaryrefslogtreecommitdiff
path: root/js/lex.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lex.js')
-rw-r--r--js/lex.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/lex.js b/js/lex.js
index f235672..086fc90 100644
--- a/js/lex.js
+++ b/js/lex.js
@@ -21,6 +21,10 @@ Lex.prototype.css = function(){
Lex.prototype.html = function(){
return this.char == " " ? " " : this.char || " "
}
+Lex.prototype.read = function(){
+ this.char = this.span.innerHTML
+ return this.char
+}
Lex.prototype.irc = function(){
var char = this.char == "%" ? '%%' : this.char || " "
if (this.bg == 1 && this.fg == 0) {