Allow " ex:" to match at beginning of file

Although unlikely to be valid syntax in most programming languages, such
a modeline is valid syntax in Vim, and will trigger any filetype modes.
This commit is contained in:
Alhadis
2016-09-12 19:59:08 +10:00
parent 70779c9986
commit e73a4ecd0e
3 changed files with 5 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ module Linguist
vi
(?:m[<=>]?\d+|m)? # Version-specific modeline
|
(?!^)\s
[\t\x20] # `ex:` requires whitespace, because "ex:" might be short for "example:"
ex
)