Skip to content

Commit

Permalink
Merge pull request #30 from BANOnotIT/comments
Browse files Browse the repository at this point in the history
Implement C-like comments
  • Loading branch information
dertuxmalwieder committed Oct 21, 2022
2 parents ba6fdb1 + 886bce9 commit f5f0a6c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions TodoTxt.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ variables:
date: (?:[1-2]\d{3}[-/\\.](?:0?[1-9]|1[012])[-/\\.](?:0[1-9]|[12]\d|3[01]))
contexts:
main:
- include: comments
- include: task_done
- include: task_todo

Expand Down Expand Up @@ -69,3 +70,12 @@ contexts:
comment: Custom attributes
scope: variable.annotation.todotxt.attribute

comments:
# Comments begin with a '//' and finish at the end of the line.
- match: //
scope: punctuation.definition.comment.example-c
push:
# This is an anonymous context push for brevity.
- meta_scope: comment.line.double-slash.example-c
- match: $\n?
pop: true

0 comments on commit f5f0a6c

Please sign in to comment.