dertuxmalwieder / SublimeTodoTxt

Sublime Text syntax highlighting for Todo.txt
125 stars 19 forks source link

Allow whitespace in front of 'x'? #27

Closed ryanpcmcquen closed 4 years ago

ryanpcmcquen commented 4 years ago

I have a TODO.txt file, with some subtasks, for example:

) Foo
    x ) Bar
    ) Baz

I'd like the Bar entry to syntax highlight, wondering if this is feasible or practical ...

dertuxmalwieder commented 4 years ago

to syntax highlight

As in, "done"? Well, it probably is. Here's my (blind) attempt: Replace line 25 in the syntax file:

- match: ^x\s.*$

by:

- match: ^\s*x\s.*$
ryanpcmcquen commented 4 years ago

@dertuxmalwieder, that should do it!

dertuxmalwieder commented 4 years ago

Good! Send me a PR if you want to have it in here permanently.

ryanpcmcquen commented 4 years ago

@dertuxmalwieder: https://github.com/dertuxmalwieder/SublimeTodoTxt/pull/28