Replies: 4 comments
-
|
I’ve turned the test file (which I used internally for checking the Sublime Plugin) into something proper here: https://xit.jotaen.net/syntax-guide It’s not an automated test, but it should already be helpful both for users who want to learn more about the rules, and for tool creators to compare their implementation against it, or derive test cases. There are probably some edge-cases missing, so I’ll just update that document whenever something comes up. If you’d like something to be added (or corrected), please post it into this issue here as comment. |
Beta Was this translation helpful? Give feedback.
-
|
One additional remark, by the way: especially for syntax highlighters, it’s probably impossible to get all of the rules correct, due to various limitations in the highlighting engines. I think that’s okay, though, since a highlighter should be considered to be a visual aid, rather than an authoritative verification. Marking things as invalid should also be more of a nice-to-have. |
Beta Was this translation helpful? Give feedback.
-
|
I used sematic highlighting in my latest version of my vscode plugin (xit! extended). It loads a bit slower but it follows the specification very closely (for example, only highlighting the first due date). I am considering to use this to implement different highlights for overdue dates. |
Beta Was this translation helpful? Give feedback.
-
👍 I think VSCode has one of the more powerful highlighting engines, so it’s cool that such enhanced features are possible there. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For tools or editor plugins it would be useful to have a thorough test file, to check whether all rules and edge-cases are handled properly.
I’ve already shared something in #6, but that could be more thorough and better structured.
It’s probably best to provide a copy-able file on the website, and then have separate annotations for more details.
Beta Was this translation helpful? Give feedback.
All reactions