1
0
mirror of https://github.com/sharkdp/bat synced 2026-06-09 10:03:18 +00:00

feat: add tclsh, wish, and expect shebang detection for Tcl syntax

Add first_line_match to the Tcl syntax definition via a patch file,
enabling automatic Tcl highlighting for scripts with tclsh, wish,
or expect shebangs.

Fixes #3513
This commit is contained in:
Matt Van Horn
2026-03-20 21:04:26 -07:00
parent f822bd05ce
commit 52763e0205
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
diff --git syntaxes/01_Packages/TCL/Tcl.sublime-syntax syntaxes/01_Packages/TCL/Tcl.sublime-syntax
index 1234567..abcdefg 100644
--- syntaxes/01_Packages/TCL/Tcl.sublime-syntax
+++ syntaxes/01_Packages/TCL/Tcl.sublime-syntax
@@ -3,6 +3,7 @@
# http://www.sublimetext.com/docs/3/syntax.html
name: Tcl
file_extensions:
- tcl
+first_line_match: ^\#!.*\b(tclsh|wish|expect)\b
scope: source.tcl
variables: