diff --git a/Support/lib/gist.rb b/Support/lib/gist.rb index 09825b5..16fa68d 100755 --- a/Support/lib/gist.rb +++ b/Support/lib/gist.rb @@ -68,37 +68,37 @@ def process_selection def get_extension scope = ENV["TM_SCOPE"].split[0] case scope - when /source\.actionscript/ ; "as" - when /source\.c/, "source.objc" ; "c" - when /source\.c\+\+/, "source.objc++" ; "cpp" + when /source\.actionscript$/ ; "as" + when /source\.c$/, "source.objc" ; "c" + when /source\.c\+\+$/, "source.objc++" ; "cpp" # common-lisp-mode ; "el" - when /source\.css/ ; "css" - when /source\.diff/, "meta.diff.range" ; "diff" + when /source\.css$/ ; "css" + when /source\.diff$/, "meta.diff.range" ; "diff" # emacs-lisp-mode ; "el" - when /source\.erlang/ ; "erl" - when /source\.haskell/, "text.tex.latex.haskel" ; "hs" - when /text\.html\.markdown/ ; "md" - when /text\.html/ ; "html" - when /source\.io/ ; "io" - when /source\.java/ ; "java" - when /source\.js/ ; "js" + when /source\.erlang$/ ; "erl" + when /source\.haskell$/, "text.tex.latex.haskel" ; "hs" + when /text\.html\.markdown$/ ; "md" + when /text\.html$/ ; "html" + when /source\.io$/ ; "io" + when /source\.java$/ ; "java" + when /source\.js$/ ; "js" # jde-mode ; "java" # js2-mode ; "js" - when /source\.lua/ ; "lua" - when /source\.ocaml/ ; "ml" - when /source\.objc/, "source.objc++" ; "m" - when /source\.perl/ ; "pl" - when /source\.php/ ; "php" - when /source\.python/ ; "sc" - when /source\.ruby/ ; "rb" # Emacs bundle uses rbx - when /text\.plain/ ; "txt" - when /source\.sql/ ; "sql" - when /source\.scheme/ ; "scm" - when /source\.smalltalk/ ; "st" - when /source\.shell/ ; "sh" - when /source\.tcl/, "text.html.tcl" ; "tcl" - when /source\.lex/ ; "tex" - when /text\.xml/, /text.xml.xsl/, /source.plist/, /text.xml.plist/ ; "xml" + when /source\.lua$/ ; "lua" + when /source\.ocaml$/ ; "ml" + when /source\.objc$/, "source.objc++" ; "m" + when /source\.perl$/ ; "pl" + when /source\.php$/ ; "php" + when /source\.python$/ ; "sc" + when /source\.ruby$/ ; "rb" # Emacs bundle uses rbx + when /text\.plain$/ ; "txt" + when /source\.sql$/ ; "sql" + when /source\.scheme$/ ; "scm" + when /source\.smalltalk$/ ; "st" + when /source\.shell$/ ; "sh" + when /source\.tcl$/, "text.html.tcl" ; "tcl" + when /source\.lex$/ ; "tex" + when /text\.xml$/, /text.xml.xsl$/, /source.plist$/, /text.xml.plist$/ ; "xml" else "txt" end end