arduino-vim-syntax / template.vim

Full commit
" Vim syntax file
" Language:    Arduino
" Maintainer:  Johannes Hoff <>
" Last Change: ${date}
" License:     VIM license (:help license, replace vim by arduino.vim)

" Syntax highlighting like in the Arduino IDE
" Automatically generated by the script available at
" Using keywords from <arduino>/build/shared/lib/keywords.txt
" From version: ${arduino_version}

" Thanks to Rik, Erik Nomitch, Adam Obeng and Graeme Cross for helpful feedback!

" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if version < 600
  syntax clear
elseif exists("b:current_syntax")

" Read the C syntax to start with
if version < 600
  so <sfile>:p:h/cpp.vim
  runtime! syntax/cpp.vim


hi def link arduinoType Type
hi def link arduinoConstant Constant
hi def link arduinoStdFunc Function
hi def link arduinoFunc Function
hi def link arduinoMethod Function
hi def link arduinoModule Identifier