Skip to content

Commit

Permalink
Parse styled components attrs() method without tagged templates.
Browse files Browse the repository at this point in the history
Issue #424
  • Loading branch information
Graham Clark committed Oct 4, 2017
1 parent 9cecc50 commit ea2430d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
### 2.75.1
- Change styled.attrs parsing to allow for no template string.[Issue 424](https://github.com/gandm/language-babel/issues/424)

### 2.75.0
- Add new `.languagebabel` option `keepFileExtension`.

### 2.74.4
- Fix grammar: class field property returning arrow func which returns arrow func. [Issue 421](https://github.com/gandm/language-babel/issues/421)

Expand Down
3 changes: 2 additions & 1 deletion grammars/Babel Language.json
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,8 @@
{
"comment": "Styled CSS tag functions",
"begin": "(?<!\\.)\\s*+(?:(\\bstyled))\\s*(?=((\\((?:(?>[^()]+)|\\g<-1>)*\\))*\\s*\\??\\.\\s*attrs\\s*\\())",
"end": "(?<=`)",
"end": "(?=.)",
"applyEndPatternLast": 1,
"beginCaptures": {
"1": { "name": "entity.name.function.js" }
},
Expand Down

0 comments on commit ea2430d

Please sign in to comment.