# HG changeset patch # User Mike Pavone # Date 1365696995 25200 # Node ID 35006a6e1c47549f828dac16bd5b8b0a0fcf265c # Parent 648659961e0e8a4c6ec65cb5814cd960dd894b12 Fixed more editor coderot and improved syntax/selection coloring a bit. diff -r 648659961e0e -r 35006a6e1c47 editor.css --- a/editor.css Thu Apr 11 00:12:21 2013 -0700 +++ b/editor.css Thu Apr 11 09:16:35 2013 -0700 @@ -44,7 +44,7 @@ #src .selected { - background-color: yellow; + background-color: #FFFFB0; } #editor @@ -200,6 +200,16 @@ color: #FF1030; } +.funpart +{ + color: #108030; +} + +.args +{ + color: #1030C0; +} + .op > div { display: inline-block; diff -r 648659961e0e -r 35006a6e1c47 editor.js --- a/editor.js Thu Apr 11 00:12:21 2013 -0700 +++ b/editor.js Thu Apr 11 09:16:35 2013 -0700 @@ -97,7 +97,7 @@ textContent: parts[i] + (this.receiver && parts.length == 1 ? '' : ':'), className: 'funpart', onclick: function(event) { - mainModule.funClick(this, astNode, event); + main_module.funClick(this, astNode, event); }})); if (this.args[i]) { this.args[i].toHTML(base); @@ -116,7 +116,7 @@ className: 'symbol', textContent: this.name, onclick: function(event) { - mainModule.symbolClick(this, astNode, event); + main_module.symbolClick(this, astNode, event); } })); } diff -r 648659961e0e -r 35006a6e1c47 index.html --- a/index.html Thu Apr 11 00:12:21 2013 -0700 +++ b/index.html Thu Apr 11 09:16:35 2013 -0700 @@ -21,7 +21,7 @@
    -
    +
    • <
    • >
    • diff -r 648659961e0e -r 35006a6e1c47 src/editor.tp --- a/src/editor.tp Thu Apr 11 00:12:21 2013 -0700 +++ b/src/editor.tp Thu Apr 11 09:16:35 2013 -0700 @@ -76,9 +76,8 @@ } symbolClick <- :domnode astnode event { - console log: astnode selectNode: domnode - popInscope: ((astnode symbols) allSymbols) onClick: :key { + popInscope: ((astnode symbols) allSymbols: (foreign: undefined)) onClick: :key { domnode textContent!: key astnode name!: key }