Skip to content

Commit 9186015

Browse files
committed
🐛 Fix to breaks syntax highlighting in jsxString with comma
1 parent 46bcbc1 commit 9186015

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

after/syntax/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ syntax region jsxRegion
3131
\ end=+>\n\?\s*}\@=+
3232
\ end=+>;\@=+
3333
\ end=+\n\?\s\*,+
34-
\ end=+\s*,\@=+
34+
\ end=+\s*>,\@=+
3535
\ end=+\s\+:\@=+
3636
\ fold
3737
\ contains=jsxCloseString,jsxCloseTag,jsxTag,jsxComment,jsFuncBlock,

sample.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,12 @@ class Hoge extends React.Component {
5050

5151
render() {
5252
return (
53-
<div>
53+
<div className="aaa, aaaa">
54+
<div className="aaa, aaaa, aaaaaa">
55+
56+
</div>
5457
</div>
58+
5559
<div>
5660
{(hoge => {
5761
if (hoge) {

0 commit comments

Comments
 (0)