Skip to content

Commit 7a2f5a3

Browse files
committed
trading aint for isnt -- let's be serious
1 parent 6630363 commit 7a2f5a3

File tree

13 files changed

+16
-16
lines changed

13 files changed

+16
-16
lines changed

documentation/cs/aliases.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
launch() if ignition is on
22

3-
volume: 10 if band aint spinal_tap
3+
volume: 10 if band isnt spinal_tap
44

55
let_the_wild_rumpus_begin() unless answer is no
66

documentation/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ coffee-script --print app/scripts/*.cs > concatenation.js</pre>
278278
CoffeeScript compiles <tt>==</tt> into <tt>===</tt>, and <tt>!=</tt> into
279279
<tt>!==</tt>.
280280
In addition, <tt>is</tt> compiles into <tt>===</tt>,
281-
and <tt>aint</tt> into <tt>!==</tt>.
281+
and <tt>isnt</tt> into <tt>!==</tt>.
282282
</p>
283283
<p>
284284
You can use <tt>not</tt> as an alias for <tt>!</tt>.

examples/code.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
odd: x => x % 2 is 0.
77

8-
even: x => x % 2 aint 0.
8+
even: x => x % 2 isnt 0.
99

1010
run_loop: =>
1111
fire_events( e => e.stopPropagation(). )

examples/underscore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
return iterator.call(context, item, i, obj) for item, i in obj. if _.isArray(obj) or _.isArguments(obj)
5050
iterator.call(context, obj[key], key, obj) for key in _.keys(obj).
5151
catch e
52-
throw e if e aint breaker.
52+
throw e if e isnt breaker.
5353
obj.
5454

5555
# Return the results of applying the iterator to each element. Use JavaScript

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ <h2>Language Reference</h2>
453453
CoffeeScript compiles <tt>==</tt> into <tt>===</tt>, and <tt>!=</tt> into
454454
<tt>!==</tt>.
455455
In addition, <tt>is</tt> compiles into <tt>===</tt>,
456-
and <tt>aint</tt> into <tt>!==</tt>.
456+
and <tt>isnt</tt> into <tt>!==</tt>.
457457
</p>
458458
<p>
459459
You can use <tt>not</tt> as an alias for <tt>!</tt>.
@@ -476,7 +476,7 @@ <h2>Language Reference</h2>
476476
</p>
477477
<div class='code'><pre class="idle">launch() <span class="Keyword">if</span> ignition <span class="Keyword">is</span> <span class="BuiltInConstant">on</span>
478478

479-
volume<span class="Keyword">:</span> <span class="Number">10</span> <span class="Keyword">if</span> band <span class="Keyword">aint</span> spinal_tap
479+
volume<span class="Keyword">:</span> <span class="Number">10</span> <span class="Keyword">if</span> band isnt spinal_tap
480480

481481
let_the_wild_rumpus_begin() <span class="Keyword">unless</span> answer <span class="Keyword">is</span> <span class="BuiltInConstant">no</span>
482482

lib/coffee_script/CoffeeScript.tmbundle/Syntaxes/CoffeeScript.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
</dict>
242242
<dict>
243243
<key>match</key>
244-
<string>!|\$|%|&amp;|\*|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|&lt;=|&gt;=|&lt;&lt;=|&gt;&gt;=|&gt;&gt;&gt;=|&lt;&gt;|&lt;|&gt;|!|&amp;&amp;|\?|\|\||\:|\*=|(?&lt;!\()/=|%=|\+=|\-=|&amp;=|\^=|\b(in|instanceof|new|delete|typeof|and|or|is|aint|not)\b</string>
244+
<string>!|\$|%|&amp;|\*|\-\-|\-|\+\+|\+|~|===|==|=|!=|!==|&lt;=|&gt;=|&lt;&lt;=|&gt;&gt;=|&gt;&gt;&gt;=|&lt;&gt;|&lt;|&gt;|!|&amp;&amp;|\?|\|\||\:|\*=|(?&lt;!\()/=|%=|\+=|\-=|&amp;=|\^=|\b(in|instanceof|new|delete|typeof|and|or|is|isnt|not)\b</string>
245245
<key>name</key>
246246
<string>keyword.operator.cs</string>
247247
</dict>

lib/coffee_script/grammar.y

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ prechigh
2424
left '<<' '>>' '>>>'
2525
left '&' '|' '^'
2626
left '<=' '<' '>' '>='
27-
right '==' '!=' IS AINT
27+
right '==' '!=' IS ISNT
2828
left '&&' '||' AND OR
2929
right '-=' '+=' '/=' '*='
3030
right DELETE INSTANCEOF TYPEOF
@@ -172,7 +172,7 @@ rule
172172
| Expression '==' Expression { result = OpNode.new(val[1], val[0], val[2]) }
173173
| Expression '!=' Expression { result = OpNode.new(val[1], val[0], val[2]) }
174174
| Expression IS Expression { result = OpNode.new(val[1], val[0], val[2]) }
175-
| Expression AINT Expression { result = OpNode.new(val[1], val[0], val[2]) }
175+
| Expression ISNT Expression { result = OpNode.new(val[1], val[0], val[2]) }
176176
177177
| Expression '&&' Expression { result = OpNode.new(val[1], val[0], val[2]) }
178178
| Expression '||' Expression { result = OpNode.new(val[1], val[0], val[2]) }

lib/coffee_script/lexer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Lexer
88
# The list of keywords passed verbatim to the parser.
99
KEYWORDS = ["if", "else", "then", "unless",
1010
"true", "false", "yes", "no", "on", "off",
11-
"and", "or", "is", "aint", "not",
11+
"and", "or", "is", "isnt", "not",
1212
"new", "return",
1313
"try", "catch", "finally", "throw",
1414
"break", "continue",

lib/coffee_script/nodes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ class OpNode < Node
357357
'and' => '&&',
358358
'or' => '||',
359359
'is' => '===',
360-
"aint" => "!==",
360+
"isnt" => "!==",
361361
'not' => '!',
362362
}
363363
CONDITIONALS = ['||:', '&&:']

lib/coffee_script/parser.rb

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)