Skip to content

Commit 7c51af3

Browse files
authored
Update javascript.vim
1 parent b3dcbb6 commit 7c51af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ftdetect/javascript.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ endif
2828
" importation, we guess the user writes jsx
2929
" endif
3030
let s:jsx_prevalent_pattern =
31-
\ '\v\C%^\_s*%(%(//.*\_$|/\*\_.{-1,}\*/)@>\_s*)*%(import\s+\k+\s+from\s+|%(\l+\s+)=\k+\s*\=\s*require\s*\(\s*)[`"'']react>'
31+
\ '\v\C%^\_s*%(%(//.*\_$|/\*\_.{-}\*/)@>\_s*)*%(import\s+\k+\s+from\s+|%(\l+\s+)=\k+\s*\=\s*require\s*\(\s*)[`"'']react>'
3232

3333
" Whether to set the JSX filetype on *.js files.
3434
fu! <SID>EnableJSX()

0 commit comments

Comments
 (0)