Skip to content

Commit 719e0a9

Browse files
Merge pull request #9 from tamdaz/add/keywords
Add some missing keywords.
2 parents 51c8203 + 3a608ce commit 719e0a9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

languages/crystal/highlights.scm

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[
22
"alias"
3+
"alignof"
34
"annotation"
45
"begin"
56
"break"
@@ -18,24 +19,33 @@
1819
"if"
1920
"in"
2021
"include"
22+
"instance_alignof"
23+
"instance_sizeof"
2124
"lib"
2225
"macro"
2326
"module"
2427
"next"
2528
"of"
29+
"offsetof"
30+
"out"
31+
"pointerof"
2632
"require"
2733
"rescue"
2834
"return"
2935
"select"
36+
"sizeof"
3037
"struct"
3138
"then"
3239
"type"
40+
"typeof"
41+
"uninitialized"
3342
"union"
3443
"unless"
3544
"until"
3645
"verbatim"
3746
"when"
3847
"while"
48+
"with"
3949
"yield"
4050
] @keyword
4151

@@ -236,3 +246,6 @@
236246
(call
237247
method: (_) @keyword
238248
(#match? @keyword "record"))
249+
250+
((identifier) @keyword
251+
(#match? @keyword "(previous_def|super)"))

0 commit comments

Comments
 (0)