Skip to content

Commit

Permalink
cgyb
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Jan 7, 2019
1 parent abdfe4e commit 3308774
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntax/cgyb.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: gyb on swift
" Language: gyb on C

runtime! syntax/swift.vim
runtime! syntax/c.vim
unlet b:current_syntax

syn include @C syntax/c.vim
Expand All @@ -10,5 +10,5 @@ syn region cCode matchgroup=gybCCode start=+%{+ end=+}%+ contains=@C keepend
syn match gybCCode /\${[^}]*}/
hi def link gybCCode CursorLineNr

let b:current_syntax = "swiftgyb"
let b:current_syntax = "cgyb"

0 comments on commit 3308774

Please sign in to comment.