bat/assets/syntaxes/Fstab.sublime-syntax

26 lines
722 B
Text
Raw Normal View History

2019-10-21 19:56:24 +00:00
%YAML 1.2
---
# http://www.sublimetext.com/docs/3/syntax.html
name: fstab
file_extensions:
- fstab
scope: source.fstab
contexts:
main:
- match: '^\s*\#.*'
scope: comment.line.number-sign
2019-10-21 20:00:39 +00:00
comment: just a comment line
2019-10-21 19:56:24 +00:00
- match: ^\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(0|1)\s+(0|1|2)\s*$
captures:
1: entity.name.device.fstab
2: entity.name.mountpoint.fstab
3: entity.name.type.fstab
4: entity.name.options.fstab
5: constant.numeric.dump.fstab
6: constant.numeric.pass.fstab
2019-10-21 20:00:39 +00:00
comment: a valid fstab line with 6 space-separated token groups
2019-10-21 19:56:24 +00:00
- match: '^.*$'
2019-10-21 20:00:39 +00:00
scope: invalid.illegal.fstab
comment: everything else, probably an error