fix(lib): correct next sibling of zero width node

This commit is contained in:
Will Lillis 2024-11-12 18:17:45 -05:00 committed by GitHub
parent 51dfe3dbdb
commit 5d1be545c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 63 additions and 4 deletions

View file

@ -0,0 +1,10 @@
===========================
missing c node
===========================
abdef
---
(source
(MISSING "c"))

View file

@ -0,0 +1,22 @@
module.exports = grammar({
name: "next_sibling_from_zwt",
extras: $ => [
/\s|\\\r?\n/,
],
rules: {
source: $ => seq(
'a',
$._bc,
'd',
'e',
'f',
),
_bc: $ => seq(
'b',
'c',
),
}
});