Skip to content

Commit

Permalink
Adding new languages from Jooseppi12's PR
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-bond committed Jan 15, 2018
1 parent af4b5c7 commit 586f325
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 5 deletions.
47 changes: 46 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,49 @@ The default 5 can be modifed to change the colors, and more can be added.
`color`: '#98C379',
`strikethrough`: false
}]
```
```

## Supported Languages

* Ada
* C
* CoffeeScript
* CSS
* C++
* C#
* Dockerfile
* Elixir
* Erlang
* F#
* Go
* Groovy
* Haskell
* Haxe
* Kotlin
* Java
* JavaScript
* JavaScript React
* LaTex
* Less
* Lua
* Makefile
* Objective-C
* Objective-C++
* Perl
* Perl 6
* PHP
* PL/SQL
* PowerShell
* Python
* R
* Rust
* Ruby
* Sass
* Scala
* SCSS
* ShaderLab
* ShellScript
* SQL
* Swift
* TypeScript
* Visual Basic
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Better Comments",
"icon": "icon.png",
"description": "Improve your code commenting by annotating with alert, informational, TODOs, and more!",
"version": "1.1.5",
"version": "1.1.6",
"publisher": "aaron-bond",
"author": {
"name": "Aaron Bond"
Expand All @@ -22,22 +22,31 @@
"vscode": "^1.18.0"
},
"activationEvents": [
"onLanguage:ada",
"onLanguage:c",
"onLanguage:cpp",
"onLanguage:csharp",
"onLanguage:css",
"onLanguage:elixir",
"onLanguage:erlang",
"onLanguage:fsharp",
"onLanguage:go",
"onLanguage:groovy",
"onLanguage:haskell",
"onLanguage:haxe",
"onLanguage:kotlin",
"onLanguage:java",
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:latex",
"onLanguage:less",
"onLanguage:lua",
"onLanguage:objective-c",
"onLanguage:objective-cpp",
"onLanguage:plsql",
"onLanguage:php",
"onLanguage:rust",
"onLanguage:scala",
"onLanguage:scss",
"onLanguage:sass",
"onLanguage:shaderlab",
Expand All @@ -53,8 +62,8 @@
"onLanguage:r",
"onLanguage:ruby",
"onLanguage:shellscript",
"onLanguage:sql",
"onLanguage:vb"
"onLanguage:sql",
"onLanguage:vb"
],
"galleryBanner": {
"color": "#e3f4ff",
Expand Down
15 changes: 14 additions & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,17 @@ export class Parser {
case "cpp":
case "csharp":
case "css":
case "fsharp":
case "go":
case "haxe":
case "java":
case "javascript":
case "javascriptreact":
case "kotlin":
case "less":
case "php":
case "rust":
case "scala":
case "swift":
case "typescript":
this.delimiter = "//";
Expand All @@ -154,6 +158,7 @@ export class Parser {

case "coffeescript":
case "dockerfile":
case "elixir":
case "makefile":
case "perl":
case "perl6":
Expand All @@ -165,14 +170,22 @@ export class Parser {
this.delimiter = "#";
break;

case "ada":
case "haskell":
case "plsql":
case "sql":
case "lua":
this.delimiter = "--";
break;

case "vb":
this.delimiter = "'";
}
break;

case "erlang":
case "latex":
this.delimiter = "%";
}
}

private setTags(): void {
Expand Down

0 comments on commit 586f325

Please sign in to comment.