Skip to content

Commit 202ee18

Browse files
committed
Merge branch 'master' of github.com:MaxMEllon/vim-jsx-pretty
2 parents 9186015 + 737e897 commit 202ee18

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

after/syntax/javascript.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endif
2424
" <tag></tag>
2525
" s~~~~~~~~~~~e
2626
syntax region jsxRegion
27-
\ start=+<\z([^ /!?<>"'=:]\+\)+
27+
\ start=+<\z([^ /!?<>="':]\+\)+
2828
\ skip=+<!--\_.\{-}-->+
2929
\ end=+</\z1\_\s\{-}[^(=>)]>+
3030
\ end=+>\n\?\s*)\@=+
@@ -42,7 +42,7 @@ syntax region jsxRegion
4242
" <tag id="sample">
4343
" s~~~~~~~~~~~~~~~e
4444
syntax region jsxTag
45-
\ start=+<[^ /!?<>"'=:]\@=+
45+
\ start=+<[^ /!?<>"':]\@=+
4646
\ end=+>+
4747
\ matchgroup=jsxCloseTag end=+/>+
4848
\ contained
@@ -86,7 +86,7 @@ syntax match jsxAttribPunct +[:.]+ contained display
8686

8787
" <tag id="sample">
8888
" ~
89-
syntax match jsxEqual +=+ display
89+
" syntax match jsxEqual +=+ display
9090

9191
" <tag id="sample">
9292
" s~~~~~~e

sample.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,13 @@ const hoge = () => {
9696
);
9797
}
9898

99+
const SearchBar = ({
100+
options,
101+
selected,
102+
handleSearch
103+
}) => {
104+
const a = 'hi';
105+
console.log(a);
106+
}
107+
99108
export default Hoge;

0 commit comments

Comments
 (0)