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

Allow optional group and more than one mandatory argument in nospell commands #2118

Closed
wants to merge 2 commits into from

Conversation

tornaria
Copy link
Contributor

When a command is in g:vimtex_syntax_nospell_commands, its argument is excluded from spell checking; after the first patch this also works for commands with an optional argument.

After the second patch, a command in g:vimtex_syntax_nospell_commands can have more than one mandatory argument; spell check is disabled for all of them.

I use this for custom commands with optional arguments; also for some standard commands like \numberwithin (2 mandatory arguments).

Copy link
Owner

@lervag lervag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks. I don't see any reason not to accept this, except my minor comment.

autoload/vimtex/syntax/core.vim Outdated Show resolved Hide resolved
When a command is in g:vimtex_syntax_nospell_commands,
its argument is excluded from spell checking; after this
patch this also works for commands with an optional argument.
After this patch, a command in g:vimtex_syntax_nospell_commands
can have more than one mandatory argument; spell check is
disabled for all of them.
@lervag
Copy link
Owner

lervag commented Jul 28, 2021

Thanks!

@lervag lervag closed this Jul 28, 2021
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

Successfully merging this pull request may close these issues.

2 participants