@@ -21,15 +21,23 @@ repository:
21
21
- name : comment.line.alex
22
22
match : ' \-\-.*$'
23
23
- include : " #block_comment"
24
+ startcode :
25
+ patterns :
26
+ - name : variable.other.startcode.alex
27
+ match : ([\p{Ll}\p{Lu}_][\p{Ll}_\p{Lu}\p{Lt}\p{Nd}\.']*)
24
28
blocks :
25
29
patterns :
26
30
- name : meta.block.startcode.alex
27
- begin : (<)\s*(\w *)(?:\s*(,)\s*(\w *))*\s*(>)\s*(\{)
31
+ begin : (<)\s*([\p{Ll}_\p{Lu}\p{Lt}\p{Nd}\.'] *)(?:\s*(,)\s*([\p{Ll}_\p{Lu}\p{Lt}\p{Nd}\.'] *))*\s*(>)\s*(\{)
28
32
beginCaptures :
29
33
" 1 " : { name: punctuation.bracket.startcode.alex }
30
- " 2 " : { name: variable.other.starcode.alex }
34
+ " 2 " :
35
+ patterns :
36
+ - include : ' #startcode'
31
37
" 3 " : { name: punctuation.comma.startcode.alex }
32
- " 4 " : { name: variable.other.startcode.alex }
38
+ " 4 " :
39
+ patterns :
40
+ - include : ' #startcode'
33
41
" 5 " : { name: punctuation.bracket.startcode.alex }
34
42
" 6 " : { name: punctuation.block.startcode.begin.alex }
35
43
end : " }"
@@ -46,14 +54,15 @@ repository:
46
54
" 0 " : { name: punctuation.block.end.alex }
47
55
patterns :
48
56
- include : source.haskell
57
+
49
58
syntax :
50
59
patterns :
51
60
- name : entity.name.pragma.alex
52
- match : \%\w+
61
+ match : \%([\p{Ll}\p{Lu}_][\p{Ll}_\p{Lu}\p{Lt}\p{Nd}\.']*)
53
62
- name : entity.name.macro.character-set.alex
54
- match : \$\w+
63
+ match : \$([\p{Ll}\p{Lu}_][\p{Ll}_\p{Lu}\p{Lt}\p{Nd}\.']*)
55
64
- name : entity.name.macro.regular-expression.alex
56
- match : \@\w+
65
+ match : \@([\p{Ll}\p{Lu}_][\p{Ll}_\p{Lu}\p{Lt}\p{Nd}\.']*)
57
66
- name : constant.character.escape.hex.alex
58
67
match : \\x[\da-fA-F]+
59
68
- name : constant.character.escape.oct.alex
@@ -71,12 +80,16 @@ repository:
71
80
- name : punctuation.semicolon.alex
72
81
match : \;
73
82
- name : meta.startcode.alex
74
- match : (<)\s*(\w *)(?:\s*(,)\s*(\w *))*\s*(>)
83
+ match : (<)\s*([\p{Ll}_\p{Lu}\p{Lt}\p{Nd}\.'] *)(?:\s*(,)\s*([\p{Ll}_\p{Lu}\p{Lt}\p{Nd}\.'] *))*\s*(>)
75
84
captures :
76
85
" 1 " : { name: punctuation.bracket.startcode.alex }
77
- " 2 " : { name: variable.other.starcode.alex }
86
+ " 2 " :
87
+ patterns :
88
+ - include : ' #startcode'
78
89
" 3 " : { name: punctuation.comma.startcode.alex }
79
- " 4 " : { name: variable.other.startcode.alex }
90
+ " 4 " :
91
+ patterns :
92
+ - include : ' #startcode'
80
93
" 5 " : { name: punctuation.bracket.startcode.alex }
81
94
strings :
82
95
patterns :
0 commit comments