-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Description
Using the following syntax highlighting rules:
filetype: highlight_test
detect:
filename: "(\\.(test)$)"
rules:
- comment:
start: "//"
end: "$"
rules:
- todo: "TODO"The following highlights correctly:
// TODO: feed the cat
// TODO: walk the dog
However, the following does not:
xxxx//xTODO:
xxxx//xTODO
xxxx//xTODOx
xxxx//xxTODO
xxx//xTODO
xx//TODO
xxxxx//xxxTODO
xxxxx//xxTODOx
xxxxx//xTODOxx
Some experimenting shows that only the positions of the "//" and "TODO" matter, as well as the line width. "x"s can be replaced with any other characters.
Line position doesn't seem to matter.
Environment
- Version: 2.0.16-dev.20
- Commit hash: d38f0df
- OS: debian 13 (bookworm)
- Terminal: gnome-terminal
Reactions are currently unavailable