Make regex for vim modeline more lenient

This change allows the filetype/language to be retrieved from more complex vim modelines. The current regex strictly allows a set line which contains only the filetype/ft parameter and nothing else
This commit is contained in:
Ammar Askar
2015-08-10 00:38:24 -05:00
parent ffcc970140
commit 4650368bc2
4 changed files with 11 additions and 1 deletions

3
test/fixtures/Data/Modelines/ruby2 vendored Normal file
View File

@@ -0,0 +1,3 @@
/* vim: set ts=8 sw=4 filetype=ruby tw=0: */
# Please help how do I into setting vim modlines