mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
vwtags: Distinguish (tag kinds) between header, preset and viewport
For tagbar to correctly nest the tags, we need to remember kinds of parent scopes as well. This wasn't done in the original taskwiki implementation.
This commit is contained in:
parent
07dc2b8ceb
commit
1e3ccb16f8
3 changed files with 21 additions and 19 deletions
|
@ -77,9 +77,9 @@ class TestTagsViewportsPresets(MultiSyntaxTagsTest):
|
|||
|
||||
expected_output = [
|
||||
re.compile(r"^a file.wiki /.*/;\" h line:1$"),
|
||||
re.compile(r"^b file.wiki /.*/;\" h line:2 header:a$"),
|
||||
re.compile(r"^c file.wiki /.*/;\" h line:3 header:a$"),
|
||||
re.compile(r"^d file.wiki /.*/;\" h line:4 header:a&&&c$"),
|
||||
re.compile(r"^b file.wiki /.*/;\" v line:2 header:a$"),
|
||||
re.compile(r"^c file.wiki /.*/;\" p line:3 header:a$"),
|
||||
re.compile(r"^d file.wiki /.*/;\" v line:4 preset:a&&&c$"),
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue