mirror of
https://github.com/sharkdp/bat
synced 2026-06-09 10:03:18 +00:00
52763e0205
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
13 lines
408 B
Diff
Vendored
13 lines
408 B
Diff
Vendored
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:
|