adds a Catch2 theme
This commit is contained in:
parent
657a13eee1
commit
186dc04a86
1 changed files with 23 additions and 0 deletions
23
colout/colout_catch2.py
Normal file
23
colout/colout_catch2.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
def theme(context):
|
||||
|
||||
return context,[
|
||||
["^ (Start)(.*): (.*):(.*)$", "yellow", "normal,normal,normal,bold"], # Test start.
|
||||
# path file ext:line :
|
||||
["^(tests): (/.*?)/([^/:]+):([0-9]+): (.*)", "yellow,none,white,yellow,red", "bold,normal,bold,normal,bold"],
|
||||
["(`)(.*)('.*)", "red,Cpp,red", "bold,normal,bold"],
|
||||
["^\.+$", "yellow", "bold"],
|
||||
["^=+$", "yellow", "bold"],
|
||||
["(/.*?)/([^/:]+):([0-9]+): (FAILED):", "white,white,yellow,red", "normal,bold,normal,bold"],
|
||||
["(REQUIRE\(|CHECK\(|REQUIRE_THAT\()(.*)(\))$","yellow,Cpp,yellow","bold,normal,bold"],
|
||||
# Hide uninteresting stuff:
|
||||
["[0-9]+/[0-9]+ Test.*","blue"],
|
||||
["^Filters:.*","blue"],
|
||||
["^Randomness seeded to:.*","blue"],
|
||||
["^tests is a Catch2.*","blue"],
|
||||
["^Run with.*", "blue"],
|
||||
["^~+$","blue"],
|
||||
["^-+$","blue"],
|
||||
["^\s*(Scenario:|Given:|When:|Then:).*","blue"],
|
||||
["^(/.*?)/([^/:]+):([0-9]+)", "blue"],
|
||||
["^(test cases|assertions)(.*)", "blue"],
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue