From d2d58d40fd705c36eb9e779da28eb24b21b22a0a Mon Sep 17 00:00:00 2001 From: Trent Schafer Date: Sat, 5 Dec 2015 10:26:15 +1100 Subject: [PATCH 1/2] Associate language-oracle files to SQL --- lib/tag-generator.coffee | 55 ++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/lib/tag-generator.coffee b/lib/tag-generator.coffee index dbacf18..6ba9de7 100644 --- a/lib/tag-generator.coffee +++ b/lib/tag-generator.coffee @@ -25,33 +25,34 @@ class TagGenerator return 'Cson' if path.extname(@path) in ['.cson', '.gyp'] switch @scopeName - when 'source.c' then 'C' - when 'source.cpp' then 'C++' - when 'source.clojure' then 'Lisp' - when 'source.capnp' then 'Capnp' - when 'source.coffee' then 'CoffeeScript' - when 'source.css' then 'Css' - when 'source.css.less' then 'Css' - when 'source.css.scss' then 'Css' - when 'source.elixir' then 'Elixir' - when 'source.fountain' then 'Fountain' - when 'source.gfm' then 'Markdown' - when 'source.go' then 'Go' - when 'source.java' then 'Java' - when 'source.js' then 'JavaScript' - when 'source.js.jsx' then 'JavaScript' - when 'source.jsx' then 'JavaScript' - when 'source.json' then 'Json' - when 'source.julia' then 'Julia' - when 'source.makefile' then 'Make' - when 'source.objc' then 'C' - when 'source.objcpp' then 'C++' - when 'source.python' then 'Python' - when 'source.ruby' then 'Ruby' - when 'source.sass' then 'Sass' - when 'source.yaml' then 'Yaml' - when 'text.html' then 'Html' - when 'text.html.php' then 'Php' + when 'source.c' then 'C' + when 'source.cpp' then 'C++' + when 'source.clojure' then 'Lisp' + when 'source.capnp' then 'Capnp' + when 'source.coffee' then 'CoffeeScript' + when 'source.css' then 'Css' + when 'source.css.less' then 'Css' + when 'source.css.scss' then 'Css' + when 'source.elixir' then 'Elixir' + when 'source.fountain' then 'Fountain' + when 'source.gfm' then 'Markdown' + when 'source.go' then 'Go' + when 'source.java' then 'Java' + when 'source.js' then 'JavaScript' + when 'source.js.jsx' then 'JavaScript' + when 'source.jsx' then 'JavaScript' + when 'source.json' then 'Json' + when 'source.julia' then 'Julia' + when 'source.makefile' then 'Make' + when 'source.objc' then 'C' + when 'source.objcpp' then 'C++' + when 'source.python' then 'Python' + when 'source.ruby' then 'Ruby' + when 'source.sass' then 'Sass' + when 'source.yaml' then 'Yaml' + when 'text.html' then 'Html' + when 'text.html.php' then 'Php' + when 'source.plsql.oracle' then 'Sql' generate: -> tags = {} From 794063ebc09fdaf84dde51b571cc1ad3fa455073 Mon Sep 17 00:00:00 2001 From: Trent Schafer Date: Sat, 5 Dec 2015 11:08:09 +1100 Subject: [PATCH 2/2] Correct alphabetical order of scope names --- lib/tag-generator.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tag-generator.coffee b/lib/tag-generator.coffee index 6ba9de7..2ba9e7b 100644 --- a/lib/tag-generator.coffee +++ b/lib/tag-generator.coffee @@ -46,13 +46,13 @@ class TagGenerator when 'source.makefile' then 'Make' when 'source.objc' then 'C' when 'source.objcpp' then 'C++' + when 'source.plsql.oracle' then 'Sql' when 'source.python' then 'Python' when 'source.ruby' then 'Ruby' when 'source.sass' then 'Sass' when 'source.yaml' then 'Yaml' when 'text.html' then 'Html' when 'text.html.php' then 'Php' - when 'source.plsql.oracle' then 'Sql' generate: -> tags = {}