More cleanup of pragma.cpp

Replace matchPragma() function by a simple comparison.