Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program options syntax highlighting #20

Open
alx741 opened this issue Apr 6, 2015 · 0 comments
Open

Program options syntax highlighting #20

alx741 opened this issue Apr 6, 2015 · 0 comments

Comments

@alx741
Copy link
Contributor

alx741 commented Apr 6, 2015

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 (?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant