neovim

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

terraform.vim (1166B)


      1 " Vim syntax file
      2 " Language:    Terraform
      3 " Maintainer:  Gregory Anders
      4 " Upstream:    https://github.com/hashivim/vim-terraform
      5 " Last Change: 2024-09-03
      6 " License:     ISC
      7 "
      8 " Copyright (c) 2014-2016 Mark Cornick <mark@markcornick.com>
      9 "
     10 " Permission to use, copy, modify, and/or distribute this software for any purpose
     11 " with or without fee is hereby granted, provided that the above copyright notice
     12 " and this permission notice appear in all copies.
     13 "
     14 " THE SOFTWARE IS PROVIDED 'AS IS' AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
     15 " REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
     16 " FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
     17 " INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
     18 " OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
     19 " TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
     20 " THIS SOFTWARE.
     21 
     22 if exists('b:current_syntax')
     23  finish
     24 endif
     25 
     26 runtime! syntax/hcl.vim
     27 
     28 syn keyword terraType string bool number object tuple list map set any
     29 
     30 hi def link terraType Type
     31 
     32 let b:current_syntax = 'terraform'