Skip to content

Conversation

@BANOnotIT
Copy link
Contributor

Todo.txt has 11k installs on PackageControl

@BANOnotIT
Copy link
Contributor Author

@sharkdp I need help with debugging syntax since one part of it doesn't work.

This is what I have in sublime:
image

And this is what I get with bat:
image

The problem is that bat doesn't understand key:pair somehow.

key:pair syntax have this definition:

    - match: (\s+[^\s:]+:[^\s:]+)+\s*$
      comment: Custom attributes
      scope: variable.annotation.todotxt.attribute

Do you know what can be a problem? RegEx doesn't seem to be hard

@keith-hall
Copy link
Collaborator

I think the answer is that Monokai Extended.tmTheme doesn't target the variable.annotation scope, so that text stays with the color defined for entity[.task].

@BANOnotIT
Copy link
Contributor Author

@keith-hall so what if I create a patch that changes variable.annotation to variable.other?

@BANOnotIT BANOnotIT changed the title WIP: Add Todo.txt syntax Add Todo.txt syntax Oct 29, 2022
@BANOnotIT
Copy link
Contributor Author

I created a patch for theme and this is what it looks like
image

@sharkdp sharkdp merged commit 41b40f9 into sharkdp:master Oct 30, 2022
@sharkdp
Copy link
Owner

sharkdp commented Oct 30, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants