neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

editorconfig.vim (521B)


      1 " Nvim syntax file
      2 " Language:     EditorConfig
      3 " Last Change:  2023-07-20
      4 "
      5 " This file is intentionally _not_ copied from Vim.
      6 
      7 runtime! syntax/dosini.vim
      8 unlet! b:current_syntax
      9 
     10 syntax match editorconfigUnknownProperty "^\s*\zs[a-zA-Z0-9_-]\+\ze\s*="
     11 syntax keyword editorconfigProperty root
     12 
     13 lua<<
     14 local props = vim.tbl_keys(require('editorconfig').properties)
     15 vim.cmd.syntax { 'keyword', 'editorconfigProperty', unpack(props) }
     16 .
     17 
     18 hi def link editorconfigProperty dosiniLabel
     19 
     20 let b:current_syntax = 'editorconfig'