Permalink
Browse files

[toml mode] Fix new array of objects syntax

  • Loading branch information...
1 parent aee0471 commit 74c8d30637c1cf6cbc97646fca38c1bd212de8a0 @ForbesLindesay ForbesLindesay committed with marijnh Feb 23, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 mode/toml/toml.js
View
2 mode/toml/toml.js
@@ -38,6 +38,8 @@ CodeMirror.defineMode("toml", function () {
return 'bracket';
} else if (state.lhs && stream.peek() === '[' && stream.skipTo(']')) {
stream.next();//skip closing ]
+ // array of objects has an extra open & close []
+ if (stream.peek() === ']') stream.next();
return "atom";
} else if (stream.peek() === "#") {
stream.skipToEnd();

0 comments on commit 74c8d30

Please sign in to comment.