Use scope_name for syntax detection, fixes #30