Skip to content

Commit 5b143bd

Browse files
committed
change the regex engine according to warning (#449)
* change the regex engine according to warning the readme won't tell the user to change the regexpengine now that the correct one is set
1 parent 8c56957 commit 5b143bd

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,6 @@ proposed change and how it is valuable.
102102
Report a bug on [GitHub Issues](https://github.com/pangloss/vim-javascript/issues).
103103

104104

105-
## A Quick Note on Regexes
106-
107-
Vim 7.4 with patches LESS than 1-7 exhibits a bug that broke how we handle
108-
javascript regexes. Please update to a newer version or run the following
109-
commands to fix:
110-
111-
```
112-
:set regexpengine=1
113-
:syntax enable
114-
```
115-
116-
117105
## License
118106

119107
Distributed under the same terms as Vim itself. See `:help license`.

ftplugin/javascript.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
setlocal suffixesadd+=.js
2+
if (v:version < 704 || (v:version == 704 && !has('patch002'))) && exists('&regexpengine')
3+
set re=1
4+
end

0 commit comments

Comments
 (0)