Mercurial > vim
comparison runtime/syntax/arduino.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | de28b1568fc2 |
children | ebedba7a4898 |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
8 " Keywords extracted from <arduino>/build/shared/lib/keywords.txt (arduino | 8 " Keywords extracted from <arduino>/build/shared/lib/keywords.txt (arduino |
9 " version 0021) | 9 " version 0021) |
10 | 10 |
11 " Thanks to Rik, Erik Nomitch, Adam Obeng and Graeme Cross for helpful feedback! | 11 " Thanks to Rik, Erik Nomitch, Adam Obeng and Graeme Cross for helpful feedback! |
12 | 12 |
13 " For version 5.x: Clear all syntax items | 13 " quit when a syntax file was already loaded |
14 " For version 6.x: Quit when a syntax file was already loaded | 14 if exists("b:current_syntax") |
15 if version < 600 | |
16 syntax clear | |
17 elseif exists("b:current_syntax") | |
18 finish | 15 finish |
19 endif | 16 endif |
20 | 17 |
21 " Read the C syntax to start with | 18 " Read the C syntax to start with |
22 if version < 600 | 19 runtime! syntax/cpp.vim |
23 so <sfile>:p:h/cpp.vim | |
24 else | |
25 runtime! syntax/cpp.vim | |
26 endif | |
27 | 20 |
28 syn keyword arduinoConstant HIGH LOW INPUT OUTPUT | 21 syn keyword arduinoConstant HIGH LOW INPUT OUTPUT |
29 syn keyword arduinoConstant DEC BIN HEX OCT BYTE | 22 syn keyword arduinoConstant DEC BIN HEX OCT BYTE |
30 syn keyword arduinoConstant PI HALF_PI TWO_PI | 23 syn keyword arduinoConstant PI HALF_PI TWO_PI |
31 syn keyword arduinoConstant LSBFIRST MSBFIRST | 24 syn keyword arduinoConstant LSBFIRST MSBFIRST |