Fix syntax matching for active buffers