Mercurial > vim
annotate runtime/syntax/coco.vim @ 29467:5b3819ce0865 v9.0.0075
patch 9.0.0075: some compilers warn for using an uninitialized variable
Commit: https://github.com/vim/vim/commit/be3dbda871ffd1b61f52b9519c23772f62381c67
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 26 11:42:34 2022 +0100
patch 9.0.0075: some compilers warn for using an uninitialized variable
Problem: Some compilers warn for using an uninitialized variable. (Tony
Mechelynck)
Solution: Initialize the variable.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 Jul 2022 12:45:03 +0200 |
parents | 1e9e9d89f0ee |
children |
rev | line source |
---|---|
1624 | 1 " Vim syntax file |
2 " Language: Coco/R | |
3 " Maintainer: Ashish Shukla <wahjava@gmail.com> | |
29193 | 4 " Last Change: 2022 Jun 14 |
1624 | 5 " Remark: Coco/R syntax partially implemented. |
6 " License: Vim license | |
7 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1624
diff
changeset
|
8 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1624
diff
changeset
|
9 if exists("b:current_syntax") |
1624 | 10 finish |
11 endif | |
12 | |
13 syn keyword cocoKeywords ANY CHARACTERS COMMENTS COMPILER CONTEXT END FROM IF IGNORE IGNORECASE NESTED PRAGMAS PRODUCTIONS SYNC TO TOKENS WEAK | |
14 syn match cocoUnilineComment #//.*$# | |
15 syn match cocoIdentifier /[[:alpha:]][[:alnum:]]*/ | |
16 syn region cocoMultilineComment start=#/[*]# end=#[*]/# | |
17 syn region cocoString start=/"/ skip=/\\"\|\\\\/ end=/"/ | |
18 syn region cocoCharacter start=/'/ skip=/\\'\|\\\\/ end=/'/ | |
19 syn match cocoOperator /+\||\|\.\.\|-\|(\|)\|{\|}\|\[\|\]\|=\|<\|>/ | |
20 syn region cocoProductionCode start=/([.]/ end=/[.])/ | |
21 syn match cocoPragma /[$][[:alnum:]]*/ | |
22 | |
23 hi def link cocoKeywords Keyword | |
24 hi def link cocoUnilineComment Comment | |
25 hi def link cocoMultilineComment Comment | |
26 hi def link cocoIdentifier Identifier | |
27 hi def link cocoString String | |
28 hi def link cocoCharacter Character | |
29 hi def link cocoOperator Operator | |
30 hi def link cocoProductionCode Statement | |
31 hi def link cocoPragma Special | |
32 | |
29193 | 33 let b:current_syntax = 'coco' |