We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3dcbb6 commit 7c51af3Copy full SHA for 7c51af3
ftdetect/javascript.vim
@@ -28,7 +28,7 @@ endif
28
" importation, we guess the user writes jsx
29
" endif
30
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>'
+ \ '\v\C%^\_s*%(%(//.*\_$|/\*\_.{-}\*/)@>\_s*)*%(import\s+\k+\s+from\s+|%(\l+\s+)=\k+\s*\=\s*require\s*\(\s*)[`"'']react>'
32
33
" Whether to set the JSX filetype on *.js files.
34
fu! <SID>EnableJSX()
0 commit comments