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
comment.doc "/** Adds two numbers. */"
keyword "import"
punctuation "{"
punctuation "}"
keyword "from"
string "\"node:fs\""
punctuation ";"
comment "// A line comment."
keyword "export"
keyword "async"
keyword "function"
function "add"
punctuation "("
punctuation ","
operator "="
number "10n"
punctuation ")"
punctuation "{"
keyword "const"
operator "="
regex "/a+b[/]c/gi"
punctuation ";"
keyword "const"
operator "="
operator "/"
operator "/"
number "2"
punctuation ";"
keyword "const"
operator "="
string "`sum: ${a + b}"
string "second line`"
punctuation ";"
keyword.control "if"
punctuation "("
operator "==="
constant.language "null"
punctuation ")"
keyword.control "return"
constant.language "undefined"
punctuation ";"
variable.builtin "this"
operator "="
keyword "new"
type "Map"
punctuation "();"
keyword.control "return"
type "Math"
function "max"
punctuation "("
punctuation ","
punctuation ")"
operator "??"
number "0x1f"
punctuation ";"
punctuation "}"
keyword "class"
type "Point"
keyword "extends"
type "Base"
punctuation "{}"
attribute "@decorated"