aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-05-13 13:33:48 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-05-13 13:33:48 -0400
commit36d646b998f8d3f195acb9ec62e9fb80efcac9d9 (patch)
treed5da572aea97f5ffca2438d37c86cc4c9d6b87cf
parente7c986013168506072bff843c007d46699959f7d (diff)
downloadtextadept-36d646b998f8d3f195acb9ec62e9fb80efcac9d9.tar.gz
textadept-36d646b998f8d3f195acb9ec62e9fb80efcac9d9.zip
Allow "#!/usr/bin/env ..." file detection; modules/textadept/file_types.lua
Keep "#!.+/sh" since "#!.+sh" as a pattern is too generic.
-rw-r--r--modules/textadept/file_types.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/file_types.lua b/modules/textadept/file_types.lua
index fe9c3f04..81fd5041 100644
--- a/modules/textadept/file_types.lua
+++ b/modules/textadept/file_types.lua
@@ -30,7 +30,7 @@ M.extensions = {--[[Actionscript]]as='actionscript',asc='actionscript',--[[Ada]]
-- Each pattern is matched against the first line in the file.
-- @class table
-- @name patterns
-M.patterns = {['^#!.+/awk']='awk',['^#!.+/lua']='lua',['^#!.+/octave']='matlab',['^#!.+/perl']='perl',['^#!.+/php']='php',['^#!.+/python']='python',['^#!.+/ruby']='ruby',['^#!.+/bash']='bash',['^#!.+/sh']='bash',['^%s*class%s+%S+%s*<%s*ApplicationController']='rails',['^%s*class%s+%S+%s*<%s*ActionController::Base']='rails',['^%s*class%s+%S+%s*<%s*ActiveRecord::Base']='rails',['^%s*class%s+%S+%s*<%s*ActiveRecord::Migration']='rails',['^%s*<%?xml%s']='xml'}
+M.patterns = {['^#!.+awk']='awk',['^#!.+lua']='lua',['^#!.+octave']='matlab',['^#!.+perl']='perl',['^#!.+php']='php',['^#!.+python']='python',['^#!.+ruby']='ruby',['^#!.+bash']='bash',['^#!.+/sh']='bash',['^%s*class%s+%S+%s*<%s*ApplicationController']='rails',['^%s*class%s+%S+%s*<%s*ActionController::Base']='rails',['^%s*class%s+%S+%s*<%s*ActiveRecord::Base']='rails',['^%s*class%s+%S+%s*<%s*ActiveRecord::Migration']='rails',['^%s*<%?xml%s']='xml'}
---
-- List of available lexer names.