now supporting hashtags
1 parent bd0bc7b commit 566044efc4a6f838e5aded95dbb81b254fbb7aa5
0xRoM authored on 4 Jan 2024
Showing 3 changed files
View
2
■■■
README.md
C:\Users\\[your username]\AppData\Roaming\Sublime Text 3\Packages\User\
 
Example
=======
![screenshot](https://rossmarks.uk/git/0xRM/moodlog_sublime/raw/950f6e30bdb7f81855d3d258252a2ab6e90fb6dc/moodlog_sublime_example.png)
![screenshot](moodlog_sublime_example.png)
View
15
moodlog.sublime-syntax
time: (?:\s([0-9]|0[0-9]|1[0-9]|2[0-3])\:[0-5][0-9])
yellow: hsl(54, 100%, 50%)
contexts:
main:
- include: hashtags
 
- match: '{{time}}{1,2}'
comment: moodlog time
scope: constant.numeric.moodlogtxt.time
 
comment: Todo item project
scope: string.unquoted.scheduler.config
 
- match: (^\@\S+)|(\s\@\S+)
comment: moodlog positive item context
comment: context
scope: comment.block.moodlogtxt.context
 
- match: (^\#\S+)|(\s\#\S+)
comment: hashtag
scope: variable.function
 
- match: (^\+\S+)|(\s\+\S+)
comment: Todo item project
comment: positive
scope: entity.name.class.moodlogtxt.project
 
- match: (^\-\S+)|(\s\-\S+)
comment: Todo item project
comment: negative
scope: entity.name.tag.moodlogtxt.context
 
- match: '{{date}}(?= ){1,2}'
comment: Todo item done or creation date
scope: constant.numeric.moodlogtxt.date
 
- match: '(?:[^x])((?!\s([@\+\-])|({{date}})).)+'
- match: '(?:[^x])((?!\s([@\+\-\#])|({{date}})).)+'
comment: Todo item text
scope: entity.task.moodlogtxt
View
moodlog_sublime_example.png
Buy Me A Coffee