summaryrefslogtreecommitdiff
path: root/js/lex.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-30 18:12:02 -0400
committerJules Laplace <jules@okfoc.us>2015-04-30 18:12:02 -0400
commit8b83fb2bafcf11b1981535f6dbc364db15153d87 (patch)
tree521707c915bb8d5fda8ed41fa042d3a11f3cd9ee /js/lex.js
parentddaf54d3fafac65c42a6949f070dbc4222483d9b (diff)
eqColor
Diffstat (limited to 'js/lex.js')
-rw-r--r--js/lex.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/lex.js b/js/lex.js
index 641fd2e..12976d5 100644
--- a/js/lex.js
+++ b/js/lex.js
@@ -88,6 +88,9 @@ Lex.prototype.fill = function(fg, bg){
Lex.prototype.eq = function(lex){
return lex && this.fg == lex.fg && this.bg == lex.bg && this.char == lex.char
}
+Lex.prototype.eqColor = function(lex){
+ return lex && this.fg == lex.fg && this.bg == lex.bg
+}
Lex.prototype.ne = function(lex){
return ! this.eq(lex)
}