Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-4525

Alloy .tss parser doesn't validate colors property

    Details

    • Story Points:
      8
    • Sprint:
      2013 Sprint 14

      Description

      Problem description
      The following code shows an error in the .tss viewer in titanium studio next to the line after "colors" below, even though it's correct syntax.

      Error

      Syntax Error: Unexpected Token "{"

      Test case

      "#viewPricingTier": {
      	width: Ti.UI.FILL,
      	height: Ti.UI.SIZE,
      	backgroundGradient: {
      		type: 'linear',
      		startPoint: {
      			x: '0%',
      			y: '50%'
      		},
      		endPoint: {
      			x: '100%',
      			y: '50%'
      		},
      		colors: [ 
      			{ color: 'red', offset: 0.0 }, // Error here
      			{ color: 'blue', offset: 0.25 }, 
      			{ color: 'red', offset: 1.0 } 
      		],
      	},
      	borderWidth: '2dp',
      	borderColor: '#ffffff',
      	borderRadius: '4dp'
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                dsefton Daniel Sefton
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: