mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-12 02:47:10 +00:00
b08ede4374
This commit fixes several things in the MLIR vim syntax file: - Spell checking is now on by default only in comments. - '#' now starts an identifier instead of starting an outline attribute declaration, which fixes coloring the rest of the line as a preprocessor directive when there is a '#' in the middle. - '!' and '^' -prefixed identifiers are now colored as types and labels. Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D122626
-*- mlir/utils/vim/README -*- This directory contains settings for the vim editor to work on MLIR *.mlir files. It comes with filetype detection rules in the (ftdetect), syntax highlighting (syntax), some minimal sensible default settings (ftplugin) and indentation plugins (indent). To install, copy all subdirectories to your $HOME/.vim/, or if you prefer, create symlinks to the files here. To enable highlighting inside the Markdown docs, one can add ``` let g:markdown_fenced_languages = ['mlir'] ``` to `.vimrc`.