vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

hlsl.vim (416B)


      1 vim9script
      2 # Language:      HLSL (High-Level Shader Language)
      3 # Maintainer:    Maxim Kim <habamax@gmail.com>
      4 # Last Change:   2026 Aug 11
      5 
      6 if exists("b:did_ftplugin")
      7     finish
      8 endif
      9 b:did_ftplugin = 1
     10 
     11 var undo_opts = "setl commentstring< comments<"
     12 
     13 setlocal commentstring=//\ %s
     14 setlocal comments=
     15 
     16 if exists('b:undo_ftplugin')
     17     b:undo_ftplugin ..= "|" .. undo_opts
     18 else
     19     b:undo_ftplugin = undo_opts
     20 endif