-
Notifications
You must be signed in to change notification settings - Fork 46
/
dired.sublime-syntax
37 lines (37 loc) · 1.09 KB
/
dired.sublime-syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%YAML 1.2
---
name: dired
hidden: true
file_extensions:
- dired
scope: text.dired
contexts:
main:
- match: '^(\s*)([▸▾] )([^\\/]*)(\\|/)?(.*)?$'
scope: dired.item.directory
captures:
1: indent
2: punctuation.definition.directory.symbol.dired
3: string.name.directory.dired
4: punctuation.definition.directory.slash.dired
5: string.error.dired
- match: '^(\s*)(≡ )(\S.*?(\.[^\.\n]+)?)$'
scope: dired.item.file
captures:
1: indent
2: punctuation.definition.file.symbol.dired
3: string.name.file.dired
4: string.name.file.extension.dired
- match: '^⠤(\s*\[.+\]){0,1}$'
scope: dired.item.parent_dir
captures:
1: punctuation.definition.rename_mode.dired
- match: (\S(.+)?$)
push:
- meta_scope: header.dired
- match: '^(—+)(\[RENAME MODE\]){0,1}(—*)\n'
captures:
1: punctuation.definition.separator.dired
2: punctuation.definition.rename_mode.dired
3: punctuation.definition.separator.dired
pop: true