neovim

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

swiftgyb.vim (822B)


      1 " This source file is part of the Swift.org open source project
      2 "
      3 " Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
      4 " Licensed under Apache License v2.0 with Runtime Library Exception
      5 "
      6 " See https://swift.org/LICENSE.txt for license information
      7 " See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
      8 "
      9 " Vim syntax file
     10 " Language: gyb on swift
     11 "
     12 " Vim maintainer: Emir SARI <bitigchi@me.com>
     13 
     14 runtime! syntax/swift.vim
     15 unlet b:current_syntax
     16 
     17 syn include @Python syntax/python.vim
     18 syn region pythonCode matchgroup=gybPythonCode start=+^ *%+ end=+$+ contains=@Python keepend
     19 syn region pythonCode matchgroup=gybPythonCode start=+%{+ end=+}%+ contains=@Python keepend
     20 syn match gybPythonCode /\${[^}]*}/
     21 hi def link gybPythonCode CursorLineNr
     22 
     23 let b:current_syntax = "swiftgyb"