Project: appceleratorstudio
Issue TISTUD-5127: Support optional comma in tss file
When a .tss file contains certain grammars, Titanium Studio cannot parse for display in the Outline View, and the entire Outline View goes blank. Examples: Example 1) {noformat}"#topShadow[platform=android]":{	left: 0,	right: 0,	top: 0,	height: 4,	backgroundColor: "yellow",	backgroundGradient: {	type: 'linear',	startPoint: {x:0,y:0},	endPoint:{x:0,y:"100%"},	colors: [{color: "#919191", offset:0},{color: "#919191", offset:0.125},{color:"#f2f2f2",offset:1}]	} },{noformat} The {{colors}} line contains an array of objects. This is a legitimate style in a tss file, but its presence causes the whole outline view to go blank. Example 2) {noformat}"#OrderListSection[platform=ios]":{	text:"List Settings",	top:10, },{noformat} The {{top:10,}} has an extra comma in it. This isn't necessarily a correct grammar, but a .tss will compile with it in place. However, it breaks the Outline View for the entire page. I use the Outline View quite heavily when working with tss files, it's hard to go without a working tss. Example 2 has an acceptable workaround, but Example 1 does not.
Story points: 2