change buffer type detection to use grammar scope name instead of file extension