Fix syntax matching pattern for visible buffers