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

Unusual fstab highlighting #7

Closed
rpigott opened this issue Feb 19, 2023 · 1 comment
Closed

Unusual fstab highlighting #7

rpigott opened this issue Feb 19, 2023 · 1 comment

Comments

@rpigott
Copy link

rpigott commented Feb 19, 2023

My valid fstab is highlighted unusually by vim:

/dev/mapper/root  /           btrfs  rw,noatime,space_cache=v2,subvol=/subroot
/dev/mapper/root  /top        btrfs  rw,noatime,subvol=/,noauto
/dev/mapper/root  /home       btrfs  rw,noatime,subvol=/home
/dev/mapper/root  /media      btrfs  rw,noatime,subvol=/media
/dev/mapper/root  /var/cache  btrfs  rw,noatime,subvol=/cache
/dev/mapper/root  /var/log    btrfs  rw,noatime,subvol=/log
/dev/mapper/root  /var/tmp    btrfs  rw,noatime,subvol=/tmp

The optional freq and passno fields are left empty.

vim highlights all of the option fields as errors even though they are correct. Curiously, adding a trailing space removes the error highlighting. Additionally, changing the number of spaces between the type field and options field also removes the error highlighting, but produces different (incorrect?) color highlighting of the options in the options field.

I tried to modify the syntax to accomodate my fstab, but I'm a novice with vim syntax dsl don't actually understand why the options field is matched as in error, nor why it is so sensitive to the amount of whitespace. What's going on here?

@rid9
Copy link
Owner

rid9 commented Feb 19, 2023

Thank you for the report. freq and passno are now optional.

The update is part of version 1.6.3.

@rid9 rid9 closed this as completed Feb 19, 2023
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

2 participants