diff --git a/mlir/utils/vim/mlir.vim b/mlir/utils/vim/mlir.vim index 8f08b0db6bbd..7bc7f1154748 100644 --- a/mlir/utils/vim/mlir.vim +++ b/mlir/utils/vim/mlir.vim @@ -12,6 +12,7 @@ syn keyword mlirType memref tensor vector syntax keyword mlirKeywords extfunc cfgfunc mlfunc for to step return syntax keyword mlirConditional if else +syntax keyword mlirCoreOps dim addf addi subf subi mulf muli cmpi select constant affine_apply call call_indirect extract_element getTensor memref_cast tensor_cast load store alloc dealloc dma_start dma_wait syn match mlirInt "-\=\<\d\+\>" syn match mlirFloat "-\=\<\d\+\.\d\+\>" @@ -23,6 +24,7 @@ syn region mlirString matchgroup=mlirString start=+"+ end=+"+ hi def link mlirComment Comment hi def link mlirKeywords Statement +hi def link mlirCoreOps Statement hi def link mlirInt Constant hi def link mlirType Type hi def link mlirMapOutline PreProc