Skip to content

Commit

Permalink
[YAML] Fix plain type recognition in flow blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
FichteFoll committed Sep 21, 2016
1 parent 9e72b27 commit f51cb9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion YAML/YAML.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ variables:
| \s+ \#
| \s* : (\s|$)
| \s* : {{c_flow_indicator}}
| {{c_flow_indicator}}
| \s* {{c_flow_indicator}}
)
)
Expand Down
6 changes: 6 additions & 0 deletions YAML/tests/syntax_test_flow-plain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,9 @@ p[l]a,in:[]
# ^^ string.unquoted.plain.in
# ^^^ -string
]


{ bar: 1}
# ^ constant.numeric.integer
{ bar: 1 }
# ^ constant.numeric.integer

0 comments on commit f51cb9d

Please sign in to comment.