Skip to content

Instantly share code, notes, and snippets.

@raphaelhuefner
Last active September 26, 2018 16:09
Show Gist options
  • Save raphaelhuefner/d8e37a4b3252cbbf738917a607056675 to your computer and use it in GitHub Desktop.
Save raphaelhuefner/d8e37a4b3252cbbf738917a607056675 to your computer and use it in GitHub Desktop.
Tokenizations by color change, selected for "turning blue"
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Tokenization Reports for Solidity in ACE</title>
<style type="text/css">
li {
line-height: 200%;
}
li code {
display: inline;
}
code.highlighted {
display: inline;
color: #cc0000;
}
span.highlighted,
code.highlighted {
padding: 1px;
border-radius: 5px;
border: 1px solid #999999;
background-color: #cccccc;
}
</style>
</head>
<body>
<h1>Tokenizations by color change, selected for &quot;turning blue&quot; in the textmate theme.</h1>
<div id="report"><h2>OLD {tm()}<br>NEW {tm(<span class="highlighted" style="background-color:#0000ff;">#0000ff</span>)}</h2>
<div style="margin-left:5em">
<h3>OLD {[identifier] tm()}<br>NEW {[keyword] tm(<span class="highlighted" style="background-color:#0000ff;">#0000ff</span>)}</h3>
<code class="highlighted">emit</code>
,
<code class="highlighted">pragma</code>
,
<code class="highlighted">solidity</code>
,
<code class="highlighted">import</code>
,
<code class="highlighted">as</code>
,
<code class="highlighted">from</code>
,
<code class="highlighted">experimental</code>
<h3>OLD {[identifier] tm()}<br>NEW {[keyword.control] tm(<span class="highlighted" style="background-color:#0000ff;">#0000ff</span>)}</h3>
<code class="highlighted">_</code>
<h3>OLD {[identifier] tm()}<br>NEW {[keyword.other.reserved] tm(<span class="highlighted" style="background-color:#0000ff;">#0000ff</span>)}</h3>
<code class="highlighted">abstract</code>
,
<code class="highlighted">after</code>
,
<code class="highlighted">alias</code>
,
<code class="highlighted">apply</code>
,
<code class="highlighted">auto</code>
,
<code class="highlighted">catch</code>
,
<code class="highlighted">copyof</code>
,
<code class="highlighted">default</code>
,
<code class="highlighted">define</code>
,
<code class="highlighted">final</code>
,
<code class="highlighted">immutable</code>
,
<code class="highlighted">implements</code>
,
<code class="highlighted">inline</code>
,
<code class="highlighted">let</code>
,
<code class="highlighted">macro</code>
,
<code class="highlighted">match</code>
,
<code class="highlighted">mutable</code>
,
<code class="highlighted">null</code>
,
<code class="highlighted">of</code>
,
<code class="highlighted">override</code>
,
<code class="highlighted">partial</code>
,
<code class="highlighted">promise</code>
,
<code class="highlighted">reference</code>
,
<code class="highlighted">relocatable</code>
,
<code class="highlighted">sealed</code>
,
<code class="highlighted">sizeof</code>
,
<code class="highlighted">static</code>
,
<code class="highlighted">supports</code>
,
<code class="highlighted">switch</code>
,
<code class="highlighted">type</code>
,
<code class="highlighted">typedef</code>
,
<code class="highlighted">unchecked</code>
</div>
<h2>OLD {tm()}<br>NEW {tm(<span class="highlighted" style="background-color:rgb(0, 0, 205);">rgb(0, 0, 205)</span>)}</h2>
<div style="margin-left:5em">
<h3>OLD {[identifier] tm()}<br>NEW {[constant.numeric.other.unit.currency] tm(<span class="highlighted" style="background-color:rgb(0, 0, 205);">rgb(0, 0, 205)</span>)}</h3>
<code class="highlighted">wei</code>
,
<code class="highlighted">szabo</code>
,
<code class="highlighted">finney</code>
,
<code class="highlighted">ether</code>
<h3>OLD {[identifier] tm()}<br>NEW {[constant.numeric.other.unit.time] tm(<span class="highlighted" style="background-color:rgb(0, 0, 205);">rgb(0, 0, 205)</span>)}</h3>
<code class="highlighted">seconds</code>
,
<code class="highlighted">minutes</code>
,
<code class="highlighted">hours</code>
,
<code class="highlighted">days</code>
,
<code class="highlighted">weeks</code>
<h3>OLD {[identifier] tm()}<br>NEW {[constant.numeric.other.unit.time.deprecated] tm(<span class="highlighted" style="background-color:rgb(0, 0, 205);">rgb(0, 0, 205)</span>)}</h3>
<code class="highlighted">years</code>
</div>
<h2>OLD {tm(<span class="highlighted" style="background-color:rgb(60, 76, 114);">rgb(60, 76, 114)</span>)}, {tm(<span class="highlighted" style="background-color:#0000A2;">#0000A2</span>)}<br>NEW {tm(<span class="highlighted" style="background-color:#0000A2;">#0000A2</span>)}</h2>
<div style="margin-left:5em">
<h3>OLD {[support.function] tm(<span class="highlighted" style="background-color:rgb(60, 76, 114);">rgb(60, 76, 114)</span>)}, {[entity.name.function] tm(<span class="highlighted" style="background-color:#0000A2;">#0000A2</span>)}<br>NEW {[entity.name.function] tm(<span class="highlighted" style="background-color:#0000A2;">#0000A2</span>)}</h3>
<code class="highlighted">send</code>
</div>
<h2>OLD {tm(<span class="highlighted" style="background-color:rgb(3, 106, 7);">rgb(3, 106, 7)</span>)}<br>NEW {tm(<span class="highlighted" style="background-color:rgb(197, 6, 11);">rgb(197, 6, 11)</span>)}</h2>
<div style="margin-left:5em">
<h3>OLD {[string] tm(<span class="highlighted" style="background-color:rgb(3, 106, 7);">rgb(3, 106, 7)</span>)}<br>NEW {[constant.other] tm(<span class="highlighted" style="background-color:rgb(197, 6, 11);">rgb(197, 6, 11)</span>)}</h3>
<code class="highlighted">"v0.5.0"</code>
</div></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment