Skip to content

Commit

Permalink
feat: add support for link modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Nov 28, 2021
1 parent 5f2a7be commit 7fc3620
Show file tree
Hide file tree
Showing 5 changed files with 6,715 additions and 3,871 deletions.
3 changes: 3 additions & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ module.exports = grammar({
$.multi_footnote_prefix,
$.multi_footnote_suffix,

$.link_modifier,

$.bold_open,
$.italic_open,
$.strikethrough_open,
Expand Down Expand Up @@ -221,6 +223,7 @@ module.exports = grammar({
$.anchor_declaration,
$.anchor_definition,
$.escape_sequence,
$.link_modifier,
$.attached_modifier,
$._conflict_open,
$._conflict_close,
Expand Down
8 changes: 8 additions & 0 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@
"type": "SYMBOL",
"name": "escape_sequence"
},
{
"type": "SYMBOL",
"name": "link_modifier"
},
{
"type": "SYMBOL",
"name": "attached_modifier"
Expand Down Expand Up @@ -6042,6 +6046,10 @@
"type": "SYMBOL",
"name": "multi_footnote_suffix"
},
{
"type": "SYMBOL",
"name": "link_modifier"
},
{
"type": "SYMBOL",
"name": "bold_open"
Expand Down
12 changes: 12 additions & 0 deletions src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@
{
"type": "link",
"named": true
},
{
"type": "link_modifier",
"named": true
}
]
}
Expand Down Expand Up @@ -2293,6 +2297,10 @@
{
"type": "link",
"named": true
},
{
"type": "link_modifier",
"named": true
}
]
}
Expand Down Expand Up @@ -4414,6 +4422,10 @@
"type": "link_location_url",
"named": true
},
{
"type": "link_modifier",
"named": true
},
{
"type": "link_text",
"named": true
Expand Down
Loading

0 comments on commit 7fc3620

Please sign in to comment.