Add some comments

This commit is contained in:
Florian Pigorsch 2019-10-21 22:00:39 +02:00
parent 58a4d009fa
commit 753a124ef2

View File

@ -10,6 +10,7 @@ contexts:
main: main:
- match: '^\s*\#.*' - match: '^\s*\#.*'
scope: comment.line.number-sign scope: comment.line.number-sign
comment: just a comment line
- match: ^\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(0|1)\s+(0|1|2)\s*$ - match: ^\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(0|1)\s+(0|1|2)\s*$
captures: captures:
1: entity.name.device.fstab 1: entity.name.device.fstab
@ -18,5 +19,7 @@ contexts:
4: entity.name.options.fstab 4: entity.name.options.fstab
5: constant.numeric.dump.fstab 5: constant.numeric.dump.fstab
6: constant.numeric.pass.fstab 6: constant.numeric.pass.fstab
comment: a valid fstab line with 6 space-separated token groups
- match: '^.*$' - match: '^.*$'
scope: invalid.illegal.fstab scope: invalid.illegal.fstab
comment: everything else, probably an error