Ticket #151 (closed defect: fixed)

Opened 18 months ago

Last modified 14 months ago

strange error with regex and whitespace

Reported by: mb0 Owned by: asdt.org
Priority: major Milestone: AXDT 0.0.7
Component: editor Version: AXDT 0.0.6
Keywords: Cc:

Description

package t {
	public class T {
		public function test(s:String):int {
			var r:Regex = /test/i;
			if (0 <= s.search(r)) 
				return 1; 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<-Error "return"
			return 0;
		}
	}
}

However it works like if (0 <= s.search(r)) return 1;

Change History

Changed 14 months ago by mb0

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from AXDT 0.1.0 to AXDT 0.0.7

it was an issue with incorrect virtual semicolon insertion. whole lexer and parser infrastructure reworked. also needs less memory in 0.0.7.

prepared for 0.0.7. i need 1 or 2 weeks more to clean everything up.

Note: See TracTickets for help on using tickets.