Skip to content

Commit 3d138a7

Browse files
authored
Merge pull request #18 from yuezk/syntax-improve
Fix jsx attribute followed by `>` highlight error
2 parents e15f920 + eb850f2 commit 3d138a7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

after/syntax/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ syntax match jsxTagName
8383
" <tag key={this.props.key}>
8484
" ~~~
8585
syntax match jsxAttrib
86-
\ +[-'"<]\@<!\<[a-zA-Z:_][-.0-9a-zA-Z0-9:_]*\>\(['">]\@!\|$\)+
86+
\ +[-'"<]\@<!\<[a-zA-Z:_][-.0-9a-zA-Z0-9:_]*\>\(['"]\@!\|$\)+
8787
\ contained
8888
\ contains=jsxAttribPunct,jsxAttribHook
8989
\ display

sample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Hoge extends React.Component {
4444

4545
hoge() {
4646
Hoge.poge(
47-
<div>
47+
<div disabled>
4848
<div></div>
4949
{this.hoge}
5050
<div></div>

0 commit comments

Comments
 (0)