@@ -0,0 +1,66 @@
1+[
2+ "class"
3+ "struct"
4+ "module"
5+
6+ "def"
7+ "alias"
8+ "do"
9+ "end"
10+
11+ "require"
12+ "include"
13+ "extend"
14+] @keyword
15+
16+[
17+ "[" "]"
18+ "(" ")"
19+ "{" "}"
20+] @punctuation.bracket
21+
22+(operator) @operator
23+
24+(comment) @comment
25+
26+; literals
27+
28+(nil) @constant.builtin
29+(bool) @constant.builtin.boolean
30+
31+(integer) @constant.numeric.integer
32+(float) @constant.numeric.float
33+
34+[
35+ (string)
36+ (char)
37+ (commandLiteral)
38+] @string
39+
40+(symbol) @string.special.symbol
41+
42+(regex) @string.special.regex
43+
44+; variables
45+
46+(local_variable) @variable
47+
48+[
49+ (instance_variable)
50+ (class_variable)
51+] @variable.other.member
52+
53+(constant) @constant
54+
55+; type defintitions
56+
57+(type_identifier) @constructor
58+
59+; method definition/call
60+(identifier) @function.method
61+
62+; types
63+(generic_type) @type
64+(union_type) @type
65+(type_identifier) @type
66+