Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Verilog. #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can now use single line comment blocks for languages with `//`, `#`, or `;`
The Language Support section shows which languages are supported. See the Settings section for how to add single line comment support to languages that are not officially supported.

### Multi-line Comment Blocks
This feature has not changed, but support has now been added for Less, Objective-C/C++, and Swift.
This feature has not changed, but support has now been added for Less, Objective-C/C++, Verilog, and Swift.

## Usage
![Demo](https://raw.githubusercontent.com/kevinkyang/auto-comment-blocks/master/img/demo.gif)
Expand All @@ -30,9 +30,9 @@ You can insert single line comment blocks for languages with `//`, `#`, or `;` s

| Comment Style | Language Support |
| ------- | ------- |
| `/** */` | C, C++, C#, CSS, Go, Groovy, Java, Less, Objective C/C++, PHP, Sass, Rust, Swift |
| `/*! */` | C, C++ |
| `//`, `///` | C, C++, C#, F#, Go, Groovy, Java, JavaScript, Less, Objective C/C++, PHP, Rust, Sass, Swift, TypeScript |
| `/** */` | C, C++, Verilog, C#, CSS, Go, Groovy, Java, Less, Objective C/C++, PHP, Sass, Rust, Swift |
| `/*! */` | C, C++, Verilog |
| `//`, `///` | C, C++, Verilog, C#, F#, Go, Groovy, Java, JavaScript, Less, Objective C/C++, PHP, Rust, Sass, Swift, TypeScript |
| `#` | CoffeeScript, Dockerfile, Makefile, Perl, PowerShell, Python, R, Ruby, YAML |
| `;` | Clojure |

Expand Down Expand Up @@ -62,4 +62,4 @@ Please create an issue in the [repository](https://github.com/kevinkyang/auto-co

### 1.0.0
- Add multi-line comment support for Less, Objective-C/C++, and Swift.
- Add single-line comment blocks for most officially supported languages. See README for more information.
- Add single-line comment blocks for most officially supported languages. See README for more information.
27 changes: 27 additions & 0 deletions language-configuration/language-configuration.verilog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"comments": {
"lineComment": "//",
"blockComment": ["/*", "*/"]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
{ "open": "[", "close": "]" },
{ "open": "{", "close": "}" },
{ "open": "(", "close": ")" },
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "/**", "close": " */", "notIn": ["string"] },
{ "open": "/*!", "close": " */", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
]
}
5 changes: 3 additions & 2 deletions language-configuration/multi-line-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"php",
"rust",
"scss",
"swift"
"swift",
"verilog"
]
}
}
3 changes: 2 additions & 1 deletion language-configuration/single-line-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"rust",
"scss",
"swift",
"verilog",
"typescript"
],
"#": [
Expand All @@ -31,4 +32,4 @@
";": [
"clojure"
]
}
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@
{
"id": "go",
"configuration": "./language-configuration/language-configuration.go.json"
},
{
"id": "verilog",
"configuration": "./language-configuration/language-configuration.verilog.json"
}
],
"keybindings": [
Expand All @@ -134,4 +138,4 @@
"@types/node": "^6.0.40",
"@types/mocha": "^2.2.32"
}
}
}