Hash :
99f3ddcd
Author :
Date :
2021-06-13T22:00:43
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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
class_name Foo
extends Bar
class InnerClass:
export(int) var baz
export(int, 0) var i
return foo as Node
const FOO: int = 9
var bar: bool = true
func add(reference: Item, amount: int) -> Item:
----------------------------------------------------
[
["keyword", "class_name"], ["class-name", "Foo"],
["keyword", "extends"], ["class-name", "Bar"],
["keyword", "class"], ["class-name", "InnerClass"], ["punctuation", ":"],
["keyword", "export"],
["punctuation", "("],
["class-name", "int"],
["punctuation", ")"],
["keyword", "var"],
" baz\r\n",
["keyword", "export"],
["punctuation", "("],
["class-name", "int"],
["punctuation", ","],
["number", "0"],
["punctuation", ")"],
["keyword", "var"],
" i\r\n\r\n",
["keyword", "return"], " foo ", ["keyword", "as"], ["class-name", "Node"],
["keyword", "const"],
["constant", "FOO"],
["punctuation", ":"],
["class-name", "int"],
["operator", "="],
["number", "9"],
["keyword", "var"],
" bar",
["punctuation", ":"],
["class-name", "bool"],
["operator", "="],
["boolean", "true"],
["keyword", "func"],
["function", "add"],
["punctuation", "("],
"reference",
["punctuation", ":"],
["class-name", "Item"],
["punctuation", ","],
" amount",
["punctuation", ":"],
["class-name", "int"],
["punctuation", ")"],
["operator", "->"],
["class-name", "Item"],
["punctuation", ":"]
]
----------------------------------------------------
Checks for class names.