File tree 5 files changed +228538
-221108
lines changed
5 files changed +228538
-221108
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,13 @@ module.exports = grammar({
206
206
alias ( $ . capitalized_word , "_uppercase" ) ,
207
207
) ,
208
208
209
+ _linked_attached_modifier : $ =>
210
+ prec . right ( 2 , seq (
211
+ $ . link_modifier ,
212
+ $ . attached_modifier ,
213
+ $ . link_modifier ,
214
+ ) ) ,
215
+
209
216
// Any regular text
210
217
_paragraph : $ =>
211
218
prec . right ( 0 ,
@@ -227,8 +234,9 @@ module.exports = grammar({
227
234
$ . anchor_declaration ,
228
235
$ . anchor_definition ,
229
236
$ . escape_sequence ,
230
- $ . link_modifier ,
231
237
$ . attached_modifier ,
238
+ $ . _linked_attached_modifier ,
239
+ alias ( $ . link_modifier , "_lowercase" ) ,
232
240
alias ( $ . bold_close , "_lowercase" ) ,
233
241
alias ( $ . italic_close , "_lowercase" ) ,
234
242
alias ( $ . strikethrough_close , "_lowercase" ) ,
Original file line number Diff line number Diff line change 81
81
}
82
82
]
83
83
},
84
+ "_linked_attached_modifier" : {
85
+ "type" : " PREC_RIGHT" ,
86
+ "value" : 2 ,
87
+ "content" : {
88
+ "type" : " SEQ" ,
89
+ "members" : [
90
+ {
91
+ "type" : " SYMBOL" ,
92
+ "name" : " link_modifier"
93
+ },
94
+ {
95
+ "type" : " SYMBOL" ,
96
+ "name" : " attached_modifier"
97
+ },
98
+ {
99
+ "type" : " SYMBOL" ,
100
+ "name" : " link_modifier"
101
+ }
102
+ ]
103
+ }
104
+ },
84
105
"_paragraph" : {
85
106
"type" : " PREC_RIGHT" ,
86
107
"value" : 0 ,
154
175
},
155
176
{
156
177
"type" : " SYMBOL" ,
157
- "name" : " link_modifier "
178
+ "name" : " attached_modifier "
158
179
},
159
180
{
160
181
"type" : " SYMBOL" ,
161
- "name" : " attached_modifier"
182
+ "name" : " _linked_attached_modifier"
183
+ },
184
+ {
185
+ "type" : " ALIAS" ,
186
+ "content" : {
187
+ "type" : " SYMBOL" ,
188
+ "name" : " link_modifier"
189
+ },
190
+ "named" : false ,
191
+ "value" : " _lowercase"
162
192
},
163
193
{
164
194
"type" : " ALIAS" ,
You can’t perform that action at this time.
0 commit comments