mirror of
https://github.com/sharkdp/bat
synced 2026-06-09 10:03:18 +00:00
test(Tcl): regenerate shebang golden files to match patched syntax
The Tcl.sublime-syntax.patch adds first_line_match so bat recognizes tclsh/wish/expect shebang files as Tcl. With the patch applied, the leading '#!/...' and '# comment' lines get tokenized as Tcl comments and rendered in Monokai-Extended's comment color instead of default foreground. The goldens were generated against unpatched bat in the original commit, so CI's 'Run tests with updated syntaxes and themes' job (which runs assets/create.sh before the regression test) disagreed. Regenerate against the patched build so the regression test passes.
This commit is contained in:
+7
-7
@@ -1,7 +1,7 @@
|
||||
[38;2;248;248;242m#!/usr/bin/expect -f[0m
|
||||
[38;2;248;248;242m# Expect script detected via expect shebang[0m
|
||||
[38;2;248;248;242mset timeout 30[0m
|
||||
[38;2;248;248;242mspawn ssh user@host[0m
|
||||
[38;2;248;248;242mexpect "password:"[0m
|
||||
[38;2;248;248;242msend "secret\r"[0m
|
||||
[38;2;248;248;242mexpect eof[0m
|
||||
[38;2;117;113;94m#[0m[38;2;117;113;94m!/usr/bin/expect -f[0m
|
||||
[38;2;117;113;94m#[0m[38;2;117;113;94m Expect script detected via expect shebang[0m
|
||||
[38;2;249;38;114mset[0m[38;2;248;248;242m timeout [0m[38;2;190;132;255m30[0m
|
||||
[38;2;248;248;242mspawn[0m[38;2;248;248;242m ssh user@host[0m
|
||||
[38;2;248;248;242mexpect[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mpassword:[0m[38;2;230;219;116m"[0m
|
||||
[38;2;248;248;242msend[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116msecret[0m[38;2;190;132;255m\r[0m[38;2;230;219;116m"[0m
|
||||
[38;2;248;248;242mexpect[0m[38;2;248;248;242m [0m[38;2;249;38;114meof[0m
|
||||
|
||||
+6
-6
@@ -1,7 +1,7 @@
|
||||
[38;2;248;248;242m#!/usr/bin/env tclsh[0m
|
||||
[38;2;248;248;242m# Tcl script detected via tclsh shebang[0m
|
||||
[38;2;248;248;242mputs "Hello from tclsh"[0m
|
||||
[38;2;248;248;242mset x 42[0m
|
||||
[38;2;248;248;242mif {$x > 0} {[0m
|
||||
[38;2;248;248;242m puts "positive"[0m
|
||||
[38;2;117;113;94m#[0m[38;2;117;113;94m!/usr/bin/env tclsh[0m
|
||||
[38;2;117;113;94m#[0m[38;2;117;113;94m Tcl script detected via tclsh shebang[0m
|
||||
[38;2;249;38;114mputs[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello from tclsh[0m[38;2;230;219;116m"[0m
|
||||
[38;2;249;38;114mset[0m[38;2;248;248;242m x [0m[38;2;190;132;255m42[0m
|
||||
[38;2;249;38;114mif[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m[38;2;255;255;255m$[0m[38;2;255;255;255mx[0m[38;2;248;248;242m [0m[38;2;249;38;114m>[0m[38;2;248;248;242m [0m[38;2;190;132;255m0[0m[38;2;248;248;242m}[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
|
||||
[38;2;248;248;242m [0m[38;2;249;38;114mputs[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mpositive[0m[38;2;230;219;116m"[0m
|
||||
[38;2;248;248;242m}[0m
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
[38;2;248;248;242m#!/usr/bin/wish[0m
|
||||
[38;2;248;248;242m# Tk script detected via wish shebang[0m
|
||||
[38;2;248;248;242mpackage require Tk[0m
|
||||
[38;2;248;248;242mbutton .b -text "Click" -command {puts "clicked"}[0m
|
||||
[38;2;248;248;242mpack .b[0m
|
||||
[38;2;117;113;94m#[0m[38;2;117;113;94m!/usr/bin/wish[0m
|
||||
[38;2;117;113;94m#[0m[38;2;117;113;94m Tk script detected via wish shebang[0m
|
||||
[38;2;249;38;114mpackage[0m[38;2;248;248;242m require Tk[0m
|
||||
[38;2;248;248;242mbutton[0m[38;2;248;248;242m .b [0m[38;2;249;38;114m-[0m[38;2;248;248;242mtext [0m[38;2;230;219;116m"[0m[38;2;230;219;116mClick[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;249;38;114m-[0m[38;2;248;248;242mcommand [0m[38;2;248;248;242m{[0m[38;2;249;38;114mputs[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mclicked[0m[38;2;230;219;116m"[0m[38;2;248;248;242m}[0m
|
||||
[38;2;248;248;242mpack[0m[38;2;248;248;242m .b[0m
|
||||
|
||||
Reference in New Issue
Block a user