Branch
Hash :
f31946b3
Author :
Date :
2019-10-25T21:53:29
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
class Foo extends Bar
new: (@foo)=>
with MyClass 'baz'
.foo = "bazz"
-- any name starting with a capital letter is considered a class
func Foo Bar
----------------------------------------------------
[
["keyword", "class"],
["class-name", "Foo"],
["keyword", "extends"],
["class-name", "Bar"],
["property", "new"],
["operator", ":"],
["punctuation", "("],
["variable", "@foo"],
["punctuation", ")"],
["operator", "=>"],
["keyword", "with"],
["class-name", "MyClass"],
["string", "'baz'"],
["punctuation", "."],
"foo ",
["operator", "="],
["string", [
"\"bazz\""
]],
["comment", "-- any name starting with a capital letter is considered a class"],
"\r\nfunc ",
["class-name", "Foo"],
["class-name", "Bar"]
]
----------------------------------------------------
Checks for class names.