Skip to content

Commit

Permalink
Merge pull request #442 from pangloss/develop
Browse files Browse the repository at this point in the history
Develop -> Master
  • Loading branch information
amadeus committed May 27, 2016
2 parents d7f4728 + f39eb1f commit 0f0e4a7
Show file tree
Hide file tree
Showing 5 changed files with 164 additions and 199 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,6 @@ proposed change and how it is valuable.
Report a bug on [GitHub Issues](https://github.com/pangloss/vim-javascript/issues).


## A Quick Note on Regexes

Vim 7.4 with patches LESS than 1-7 exhibits a bug that broke how we handle
javascript regexes. Please update to a newer version or run the following
commands to fix:

```
:set regexpengine=1
:syntax enable
```


## License

Distributed under the same terms as Vim itself. See `:help license`.
2 changes: 1 addition & 1 deletion ftdetect/javascript.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ au BufNewFile,BufRead *.jsm setf javascript
au BufNewFile,BufRead Jakefile setf javascript

fun! s:SelectJavascript()
if getline(1) =~# '^#!.*/bin/env\s\+node\>'
if getline(1) =~# '^#!.*/bin/\%(env\s\+\)\?node\>'
set ft=javascript
endif
endfun
Expand Down
3 changes: 3 additions & 0 deletions ftplugin/javascript.vim
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
setlocal suffixesadd+=.js
if (v:version < 704 || (v:version == 704 && !has('patch002'))) && exists('&regexpengine')
set re=1
end
Loading

0 comments on commit 0f0e4a7

Please sign in to comment.