mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-26 08:18:50 +01:00
commit
41b40f924f
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -244,6 +244,10 @@
|
|||||||
url = https://github.com/victor-gp/cmd-help-sublime-syntax.git
|
url = https://github.com/victor-gp/cmd-help-sublime-syntax.git
|
||||||
branch = main
|
branch = main
|
||||||
shallow = true
|
shallow = true
|
||||||
|
[submodule "assets/syntaxes/02_Extra/TodoTxt"]
|
||||||
|
path = assets/syntaxes/02_Extra/TodoTxt
|
||||||
|
url = https://github.com/dertuxmalwieder/SublimeTodoTxt
|
||||||
[submodule "assets/syntaxes/02_Extra/Ada"]
|
[submodule "assets/syntaxes/02_Extra/Ada"]
|
||||||
path = assets/syntaxes/02_Extra/Ada
|
path = assets/syntaxes/02_Extra/Ada
|
||||||
url = https://github.com/wiremoons/ada-sublime-syntax
|
url = https://github.com/wiremoons/ada-sublime-syntax
|
||||||
|
|
13
assets/patches/TodoTxt.sublime-syntax.patch
vendored
Normal file
13
assets/patches/TodoTxt.sublime-syntax.patch
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git syntaxes/02_Extra/TodoTxt/TodoTxt.sublime-syntax syntaxes/02_Extra/TodoTxt/TodoTxt.sublime-syntax
|
||||||
|
index 6c75dbb..0115978 100644
|
||||||
|
--- syntaxes/02_Extra/TodoTxt/TodoTxt.sublime-syntax
|
||||||
|
+++ syntaxes/02_Extra/TodoTxt/TodoTxt.sublime-syntax
|
||||||
|
@@ -68,7 +68,7 @@ contexts:
|
||||||
|
|
||||||
|
- match: (\s+[^\s:]+:[^\s:]+)+\s*$
|
||||||
|
comment: Custom attributes
|
||||||
|
- scope: variable.annotation.todotxt.attribute
|
||||||
|
+ scope: variable.other.todotxt.attribute
|
||||||
|
|
||||||
|
comments:
|
||||||
|
# Comments begin with a '//' and finish at the end of the line.
|
1
assets/syntaxes/02_Extra/TodoTxt
vendored
Submodule
1
assets/syntaxes/02_Extra/TodoTxt
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit f5f0a6c47f8948193f5e185576d49379a1438077
|
65
tests/syntax-tests/highlighted/Todo.txt/todo.txt
vendored
Normal file
65
tests/syntax-tests/highlighted/Todo.txt/todo.txt
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
[38;2;166;226;46mRule 1.1: Priority[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Should have priority ///[0m
|
||||||
|
[38;2;248;248;240m(A)[0m[38;2;166;226;46m Thank Mom for the meatballs [0m[38;2;249;38;114m@phone[0m
|
||||||
|
[38;2;248;248;240m(B)[0m[38;2;166;226;46m Schedule Goodwill pickup [0m[38;2;230;219;116m+GarageSale[0m[38;2;166;226;46m [0m[38;2;249;38;114m@phone[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Should not have priority ///[0m
|
||||||
|
[38;2;166;226;46mReally gotta call Mom (A) [0m[38;2;249;38;114m@phone[0m[38;2;166;226;46m [0m[38;2;249;38;114m@someday[0m
|
||||||
|
[38;2;166;226;46m(b) Get back to the boss[0m
|
||||||
|
[38;2;166;226;46m(B)->Submit TPS report[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mRule 1.2: Creation date[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Date should be after priority ///[0m
|
||||||
|
[38;2;190;132;255m2011-03-02[0m[38;2;166;226;46m Document [0m[38;2;230;219;116m+TodoTxt[0m[38;2;166;226;46m task format[0m
|
||||||
|
[38;2;248;248;240m(A)[0m[38;2;166;226;46m [0m[38;2;190;132;255m2011-03-02[0m[38;2;166;226;46m Call Mom[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Should not have creation date ///[0m
|
||||||
|
[38;2;248;248;240m(A)[0m[38;2;166;226;46m Call Mom 2011-03-02[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mRule 1.3: Context and Projects [0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Contexts and projects can appear anywhere ///[0m
|
||||||
|
[38;2;248;248;240m(A)[0m[38;2;166;226;46m Call Mom [0m[38;2;230;219;116m+Family[0m[38;2;166;226;46m [0m[38;2;230;219;116m+PeaceLoveAndHappiness[0m[38;2;166;226;46m [0m[38;2;249;38;114m@iphone[0m[38;2;166;226;46m [0m[38;2;249;38;114m@phone[0m[38;2;166;226;46m to celebrate![0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ No context ///[0m
|
||||||
|
[38;2;166;226;46mEmail SoAndSo at soandso@example.com[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ No project ///[0m
|
||||||
|
[38;2;166;226;46mLearn how to add 2+2[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mRule 2.1: Completed task[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Complete task ///[0m
|
||||||
|
[38;2;117;113;94mx [0m[38;2;190;132;255m2011-03-03[0m[38;2;117;113;94m [0m[38;2;117;113;94mCall Mom[0m
|
||||||
|
[38;2;117;113;94mx [0m[38;2;117;113;94mWith [0m[38;2;249;38;114m@contexts[0m[38;2;117;113;94m [0m[38;2;230;219;116m+projects[0m[38;2;117;113;94m and[0m[38;2;255;255;255m key:value[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Not completed tasks ///[0m
|
||||||
|
[38;2;166;226;46mxylophone lesson[0m
|
||||||
|
[38;2;166;226;46mX 2012-01-01 Make resolutions[0m
|
||||||
|
[38;2;248;248;240m(A)[0m[38;2;166;226;46m x Find ticket prices[0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mRule 2.2: Completion date[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Only completion date is valuable ///[0m
|
||||||
|
[38;2;117;113;94mx [0m[38;2;117;113;94mCompletion date is optional[0m
|
||||||
|
[38;2;117;113;94mx [0m[38;2;190;132;255m2022-10-21[0m[38;2;117;113;94m [0m[38;2;117;113;94mBut you can specify it[0m
|
||||||
|
[38;2;117;113;94mx [0m[38;2;190;132;255m2011-03-02[0m[38;2;117;113;94m [0m[38;2;190;132;255m2011-03-01[0m[38;2;117;113;94m [0m
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mAdditional definition[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Properties ///[0m
|
||||||
|
[38;2;166;226;46mDecide on present for Mom[0m[38;2;255;255;255m due:2022-01-01 pri:1[0m
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[38;2;166;226;46mUnspecified[0m
|
||||||
|
|
||||||
|
[38;2;117;113;94m//[0m[38;2;117;113;94m/ Delayed tasks with WAIT keyword ///[0m
|
||||||
|
[38;2;249;38;114mWAIT[0m[38;2;166;226;46m for [0m[38;2;249;38;114m@Patric[0m[38;2;166;226;46m to finish his task with [0m[38;2;230;219;116m+program[0m
|
65
tests/syntax-tests/source/Todo.txt/todo.txt
vendored
Normal file
65
tests/syntax-tests/source/Todo.txt/todo.txt
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
Rule 1.1: Priority
|
||||||
|
|
||||||
|
/// Should have priority ///
|
||||||
|
(A) Thank Mom for the meatballs @phone
|
||||||
|
(B) Schedule Goodwill pickup +GarageSale @phone
|
||||||
|
|
||||||
|
/// Should not have priority ///
|
||||||
|
Really gotta call Mom (A) @phone @someday
|
||||||
|
(b) Get back to the boss
|
||||||
|
(B)->Submit TPS report
|
||||||
|
|
||||||
|
|
||||||
|
Rule 1.2: Creation date
|
||||||
|
|
||||||
|
/// Date should be after priority ///
|
||||||
|
2011-03-02 Document +TodoTxt task format
|
||||||
|
(A) 2011-03-02 Call Mom
|
||||||
|
|
||||||
|
/// Should not have creation date ///
|
||||||
|
(A) Call Mom 2011-03-02
|
||||||
|
|
||||||
|
|
||||||
|
Rule 1.3: Context and Projects
|
||||||
|
|
||||||
|
/// Contexts and projects can appear anywhere ///
|
||||||
|
(A) Call Mom +Family +PeaceLoveAndHappiness @iphone @phone to celebrate!
|
||||||
|
|
||||||
|
/// No context ///
|
||||||
|
Email SoAndSo at soandso@example.com
|
||||||
|
|
||||||
|
/// No project ///
|
||||||
|
Learn how to add 2+2
|
||||||
|
|
||||||
|
|
||||||
|
Rule 2.1: Completed task
|
||||||
|
|
||||||
|
/// Complete task ///
|
||||||
|
x 2011-03-03 Call Mom
|
||||||
|
x With @contexts +projects and key:value
|
||||||
|
|
||||||
|
/// Not completed tasks ///
|
||||||
|
xylophone lesson
|
||||||
|
X 2012-01-01 Make resolutions
|
||||||
|
(A) x Find ticket prices
|
||||||
|
|
||||||
|
|
||||||
|
Rule 2.2: Completion date
|
||||||
|
|
||||||
|
/// Only completion date is valuable ///
|
||||||
|
x Completion date is optional
|
||||||
|
x 2022-10-21 But you can specify it
|
||||||
|
x 2011-03-02 2011-03-01
|
||||||
|
|
||||||
|
|
||||||
|
Additional definition
|
||||||
|
|
||||||
|
/// Properties ///
|
||||||
|
Decide on present for Mom due:2022-01-01 pri:1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Unspecified
|
||||||
|
|
||||||
|
/// Delayed tasks with WAIT keyword ///
|
||||||
|
WAIT for @Patric to finish his task with +program
|
Loading…
Reference in New Issue
Block a user