Skip to content

Commit

Permalink
Merge pull request #6 from pose/master
Browse files Browse the repository at this point in the history
Changed yamlKey regex to match valid keys that have dots.
  • Loading branch information
trans committed Mar 31, 2014
2 parents 963d135 + 8c6094f commit 52cf705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yaml.vim
Expand Up @@ -36,7 +36,7 @@ syn match yamlAlias "\*.\+"
syn match yamlDelimiter "[-,:]"
syn match yamlBlock "[\[\]\{\}>|]"
syn match yamlOperator '[?+-]'
syn match yamlKey '\w\+\(\s\+\w\+\)*\ze\s*:'
syn match yamlKey '\(\.\|\w\)\+\(\s\+\(\.\|\w\)\+\)*\ze\s*:'
syn match yamlScalar '\(\(|\|>\)\s*\n*\r*\)\@<=\(\s\+\).*\n*\r*\(\(\3\).*\n\)*'

" Predefined data types
Expand Down

0 comments on commit 52cf705

Please sign in to comment.