9 Dec 2023 |
boltless | makes sense | 10:56:43 |
.vhyrro | I have it in both the external lexer and the treesitter lexer | 10:56:51 |
.vhyrro | if you take a look you'll see there are two $.punctuation definitions | 10:56:59 |
.vhyrro | but this is great because it allows both lexers to fall back to the exact same punctuation node | 10:57:13 |
.vhyrro | okay new petition | 10:58:03 |
.vhyrro | nevermind no new petition | 10:58:15 |
.vhyrro | oh interesting | 10:59:45 |
.vhyrro | treesitter just destroyed me with facts and logic | 10:59:47 |
.vhyrro | &$what `what $t` why&
boltless the valid node here should be the verbatim, shouldn't it? | 10:59:52 |
.vhyrro | because if you recognize that all of these have the exact same precedence the one that gets closed first should be the one that has the highest prec | 11:00:12 |
.vhyrro | it doesn't matter that &this& is opened earlier, `what $t` is the one that is treated as "valid" first because it gets closed first | 11:00:38 |
boltless | I think so too | 11:01:36 |
.vhyrro | this is quite a tricky question actually let me write it down somewhere so I'm not making a massive logical mistake | 11:02:16 |
boltless | so new parser should give precedence on markup that opened first, not closed first? | 11:02:54 |
.vhyrro | well currently the new parser is giving precedence to markup that is closed first | 11:03:43 |
boltless | oh | 11:03:51 |
.vhyrro | yeah | 11:03:53 |
.vhyrro | because if you think about it that's what it's been told to do | 11:04:04 |
boltless | ic | 11:04:18 |
.vhyrro | I can't really think of a way to fix this currently :| | 11:04:23 |
.vhyrro | we would have to somehow give the earlier nodes higher dynamic predecence which is not possible lol | 11:04:42 |
.vhyrro | we don't have precedence which is that dynamic | 11:04:52 |
.vhyrro | I pushed the changes, if you have some time whenever try to mess around with some test cases | 11:07:12 |
.vhyrro | here's the one I threw at it:
&$what `what $t` why& | 11:07:22 |
.vhyrro | because the verbatim is closed first the rest are disregarded | 11:07:33 |
boltless | if you’re looking for another problem:
*word /*
breaks because open_conflict on / consumes valid bold_close | 11:21:19 |
.vhyrro | ...great | 11:22:13 |
purewater | Have you considered... Just yeeting attached modifiers | 11:40:36 |
| gallo.s.chingon joined the room. | 12:05:06 |
.vhyrro | I wish | 14:28:16 |