// Ensure that anonymous names are valid identifiers via the ctags index
-// RUN: llvm-tblgen -gen-ctags %s | grep -v '^!' | not grep -viE '^[a-z_][a-z0-9_]*\t'
+// RUN: llvm-tblgen -gen-ctags %s | grep -v '^!' | not grep -viE '^[a-z_][a-z0-9_]*\s'
// Test validation
// RUN: llvm-tblgen -gen-ctags %s | grep '^anonymous' > /dev/null
// XFAIL: vg_leak