Commit 471f3b89 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

* scoping refinement for new grammar

parent cd9828c7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -154,6 +154,8 @@ public class TDLScopeProvider extends AbstractDeclarativeScopeProvider {
							if (oppositeNode != null) {
								String targetGateName = oppositeNode.getText()
										.replaceAll("(?s)where\\s+it\\s+is.+", "")
										.replaceAll("(?s)assigned\\s*.+", "")
										.replaceAll("(?s).+=\\s*", "")
										.replaceAll("(?s)with\\s*\\{.+", "")
										.trim();
								String[] split = targetGateName.split("\\.");
@@ -368,7 +370,6 @@ public class TDLScopeProvider extends AbstractDeclarativeScopeProvider {
		} else {
		}
		
		
		if (context instanceof Block) {
			TestDescription testDescription = getTestDescription((Element) context);
			if (testDescription!=null) {