Support for YAML .sublime-syntax extension

This commit is contained in:
Paul Chaignon
2016-03-09 11:29:25 +01:00
parent 3f940ce8b8
commit 3ccb548b6d
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
%YAML 1.2
---
# http://www.sublimetext.com/docs/3/syntax.html
name: Hex Inspect
file_extensions: []
hidden: true
scope: source.inspect
contexts:
main:
- match: '([\w\-]+)\s*(:)\s*'
captures:
1: support.function.key.inspect
2: support.function.punctuation.inspect
push:
- meta_scope: item.inspect
- match: '([\d\-\w]+)'
captures:
1: data.inspect
pop: true
- match: '^(\s*[\w\-\s]+)\s*(:)\s*'
captures:
1: keyword.title.inspect
2: keyword.title-punctuation.inspect
push:
- meta_scope: item.inspect
- match: $
pop: true
- match: '[\w\s]+'
scope: title-info.inspect