import re


def is_name(text):
	"""
	Returns True if "text" looks like a scoped name, False otherwise.
	"""
	for scope in text.split('::'):
		if not re.match(r'[A-Za-z_][A-Za-z0-9_]*', scope):
			return False
	return True