ciaranm / securemodelines

A secure alternative to Vim modelines
107 stars 29 forks source link

Make white space between : and keyword set optional #5

Closed miorimmax closed 12 years ago

miorimmax commented 12 years ago

According to the vim documentation (:help modeline), the white space between ':' and the keyword 'set' is optional:

[text]{white}{vi:|vim:|ex:}[white]{options}

[text] any text or empty {white} at least one blank character ( or ) {vi:|vim:|ex:} the string "vi:", "vim:" or "ex:" [white] optional white space {options} a list of option settings, separated with white space or ':', where each part between ':' is the argument for a ":set" command (can be empty)

Thus, the regular expression has been changed to match zero or more white spaces, rather than one or more.

ciaranm commented 12 years ago

Could you squash those two together please?

miorimmax commented 12 years ago

Sure thing. I'll close this request and send another with both commits put together.