Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 26efe640c1
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (35 sloc) 1.24 kb
/**
{"brand"=>{"name"=>"something",
"logo"=>#<File:/var/folders/RK/RK1vsZigGhijmL6ObznDJk+++TI/-Tmp-/CGI66145-4>,
"summary"=>"wee", "content"=>"woopy doo"}, "commit"=>"Save",
"authenticity_token"=>"43a94d60304a7fb13a4ff61a5960461ce714e92b",
"action"=>"create", "controller"=>"admin/brands"}
*/
@reportsCommentTokens = YES;
@commentState = '#';
@multiLineComments = '#<' '>';
@symbols = '=>';
@start = Empty | object;
object = openCurly objectContent closeCurly;
objectContent = Empty | actualObject;
actualObject = property commaProperty*;
array = openSquare arrayContent closeSquare;
arrayContent = Empty | actualArray;
actualArray = value commaValue*;
property = propertyName arrow value;
commaProperty = comma property;
commaValue = comma value;
propertyName = QuotedString; // NOTE: property names are quoted
value = null | true | false | object | array | number | string | fileRef;
string = QuotedString;
number = Num;
fileRef = Comment;
null = 'null';
true = 'true';
false = 'false';
openCurly = '{';
closeCurly = '}';
openSquare = '[';
closeSquare = ']';
comma = ',';
arrow = '=>';
Jump to Line
Something went wrong with that request. Please try again.