Skip to content

Commit

Permalink
Support single line comments, fixes #74
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwilliams committed Oct 7, 2020
1 parent b7a7b03 commit 32cebc8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,7 @@
- Addition of completion provider [232](https://github.com/styled-components/vscode-styled-components/pull/232)
- Contribution Guide added [223](https://github.com/styled-components/vscode-styled-components/pull/223)
- TS Generics support for .attr syntax
- Support single line comments

## 0.0.31

Expand Down
3 changes: 2 additions & 1 deletion css.styled.configuration.json
@@ -1,6 +1,7 @@
{
"comments": {
"blockComment": ["/*", "*/"]
"blockComment": ["/*", "*/"],
"lineComment": "//"
},
"brackets": [
["{", "}"],
Expand Down
16 changes: 16 additions & 0 deletions syntaxes/css.styled.json
Expand Up @@ -213,6 +213,9 @@
{
"include": "#comment_block"
},
{
"include": "#comment_line"
},
{
"match": "\\b(only)\\b",
"name": "keyword.control.operator.css.scss"
Expand Down Expand Up @@ -410,6 +413,16 @@
},
"name": "comment.block.scss"
},
"comment_line": {
"begin": "//",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.scss"
}
},
"end": "\\n",
"name": "comment.line.scss"
},
"constant_important": {
"match": "!important",
"name": "keyword.other.important.scss"
Expand Down Expand Up @@ -706,6 +719,9 @@
},
{
"include": "#comment_block"
},
{
"include": "#comment_line"
}
]
},
Expand Down

0 comments on commit 32cebc8

Please sign in to comment.