aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_sh.lua
diff options
context:
space:
mode:
authorrxi <rxi@users.noreply.github.com>2020-06-08 16:14:24 +0100
committerrxi <rxi@users.noreply.github.com>2020-06-08 16:14:24 +0100
commit0e8605da5c9ad371eb1f96e22f821d8c29a026e2 (patch)
tree4266a01e7d885e4d630a55a794748425621e3304 /plugins/language_sh.lua
parente4b21e6c85e541c53299d5c652b932758bb1f4b7 (diff)
downloadlite-xl-plugins-0e8605da5c9ad371eb1f96e22f821d8c29a026e2.tar.gz
lite-xl-plugins-0e8605da5c9ad371eb1f96e22f821d8c29a026e2.zip
Updated plugins/language_sh.lua with header patterns
Resolves #45
Diffstat (limited to 'plugins/language_sh.lua')
-rw-r--r--plugins/language_sh.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/language_sh.lua b/plugins/language_sh.lua
index 863cd57..c4153c2 100644
--- a/plugins/language_sh.lua
+++ b/plugins/language_sh.lua
@@ -2,6 +2,7 @@ local syntax = require "core.syntax"
syntax.add {
files = { "%.sh$" },
+ headers = "^#!.*bin.*sh\n",
comment = "#",
patterns = {
{ pattern = "#.*\n", type = "comment" },