diff options
author | 2015-05-13 13:33:48 -0400 | |
---|---|---|
committer | 2015-05-13 13:33:48 -0400 | |
commit | 36d646b998f8d3f195acb9ec62e9fb80efcac9d9 (patch) | |
tree | d5da572aea97f5ffca2438d37c86cc4c9d6b87cf /modules/textadept/file_types.lua | |
parent | e7c986013168506072bff843c007d46699959f7d (diff) | |
download | textadept-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.
Diffstat (limited to 'modules/textadept/file_types.lua')
-rw-r--r-- | modules/textadept/file_types.lua | 2 |
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. |