More+Less present options with a (nice) highlighting so vim-man should too, here are some observations about the default vim man.vim syntax file.
- Default
man.vim issues:
- A lot of double hyphen options are not matched
- Options in Synopsis and other sections are not matched (surrounded by
[])
- Options in the middle of other options description text are not matched
- Commas after options are included in the match
- (For implement this in
vim-man) Take into count:
- Options are denoted by one or tho hyphens
-
- If any alphanumerical symbol precedes the hyphen it's probably not an
Options but a two-components word
- Possible characters in an Option:
Upper and lower case letters,
numbers, -, _, ? (See :Man man for and example of the last one)
- alone
- or -- are commands too (common for read from stdin )
- There is no special cases for man sections (?)
I'd like to know if I miss something or if something here is wrong; if this is correct an appropriate syntax match regex will do the job (?)
More+Lesspresent options with a (nice) highlighting sovim-manshould too, here are some observations about the default vimman.vimsyntax file.man.vimissues:[])vim-man) Take into count:-Options but a
two-componentswordUpper and lower case letters,numbers,-,_,?(See:Man manfor and example of the last one)-or--are commands too (common forread from stdin)I'd like to know if I miss something or if something here is wrong; if this is correct an appropriate
syntax matchregex will do the job (?)