Mercurial > vim
annotate runtime/syntax/pilrc.vim @ 24020:f7dbc9e81a19 v8.2.2552
patch 8.2.2552: Vim9: no reason to consider "{{{{{{{{" a command
Commit: https://github.com/vim/vim/commit/9f646c2e1105f27484d7b008a29da554ff2c21b6
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 26 21:56:47 2021 +0100
patch 8.2.2552: Vim9: no reason to consider "{{{{{{{{" a command
Problem: Vim9: no reason to consider "{{{{{{{{" a command.
Solution: Just use "{". (issue https://github.com/vim/vim/issues/7904)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Feb 2021 22:00:03 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: pilrc - a resource compiler for Palm OS development | |
3 " Maintainer: Brian Schau <brian@schau.com> | |
4 " Last change: 2003 May 11 | |
5 " Available on: http://www.schau.com/pilrcvim/pilrc.vim | |
6 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
7 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
8 if exists("b:current_syntax") |
7 | 9 finish |
10 endif | |
11 | |
12 syn case ignore | |
13 | |
14 " Notes: TRANSPARENT, FONT and FONT ID are defined in the specials | |
15 " section below. Beware of the order of the specials! | |
16 " Look in the syntax.txt and usr_27.txt files in vim\vim{version}\doc | |
17 " directory for regexps etc. | |
18 | |
19 " Keywords - basic | |
20 syn keyword pilrcKeyword ALERT APPLICATION APPLICATIONICONNAME AREA | |
21 syn keyword pilrcKeyword BITMAP BITMAPCOLOR BITMAPCOLOR16 BITMAPCOLOR16K | |
22 syn keyword pilrcKeyword BITMAPFAMILY BITMAPFAMILYEX BITMAPFAMILYSPECIAL | |
23 syn keyword pilrcKeyword BITMAPGREY BITMAPGREY16 BITMAPSCREENFAMILY | |
24 syn keyword pilrcKeyword BOOTSCREENFAMILY BUTTON BUTTONS BYTELIST | |
25 syn keyword pilrcKeyword CATEGORIES CHECKBOX COUNTRYLOCALISATION | |
26 syn keyword pilrcKeyword DATA | |
27 syn keyword pilrcKeyword FEATURE FIELD FONTINDEX FORM FORMBITMAP | |
28 syn keyword pilrcKeyword GADGET GENERATEHEADER | |
29 syn keyword pilrcKeyword GRAFFITIINPUTAREA GRAFFITISTATEINDICATOR | |
30 syn keyword pilrcKeyword HEX | |
31 syn keyword pilrcKeyword ICON ICONFAMILY ICONFAMILYEX INTEGER | |
32 syn keyword pilrcKeyword KEYBOARD | |
33 syn keyword pilrcKeyword LABEL LAUNCHERCATEGORY LIST LONGWORDLIST | |
34 syn keyword pilrcKeyword MENU MENUITEM MESSAGE MIDI | |
35 syn keyword pilrcKeyword PALETTETABLE POPUPLIST POPUPTRIGGER | |
36 syn keyword pilrcKeyword PULLDOWN PUSHBUTTON | |
37 syn keyword pilrcKeyword REPEATBUTTON RESETAUTOID | |
38 syn keyword pilrcKeyword SCROLLBAR SELECTORTRIGGER SLIDER SMALLICON | |
39 syn keyword pilrcKeyword SMALLICONFAMILY SMALLICONFAMILYEX STRING STRINGTABLE | |
40 syn keyword pilrcKeyword TABLE TITLE TRANSLATION TRAP | |
41 syn keyword pilrcKeyword VERSION | |
42 syn keyword pilrcKeyword WORDLIST | |
43 | |
44 " Types | |
45 syn keyword pilrcType AT AUTOSHIFT | |
46 syn keyword pilrcType BACKGROUNDID BITMAPID BOLDFRAME BPP | |
47 syn keyword pilrcType CHECKED COLORTABLE COLUMNS COLUMNWIDTHS COMPRESS | |
48 syn keyword pilrcType COMPRESSBEST COMPRESSPACKBITS COMPRESSRLE COMPRESSSCANLINE | |
49 syn keyword pilrcType CONFIRMATION COUNTRY CREATOR CURRENCYDECIMALPLACES | |
50 syn keyword pilrcType CURRENCYNAME CURRENCYSYMBOL CURRENCYUNIQUESYMBOL | |
51 syn keyword pilrcType DATEFORMAT DAYLIGHTSAVINGS DEFAULTBTNID DEFAULTBUTTON | |
52 syn keyword pilrcType DENSITY DISABLED DYNAMICSIZE | |
53 syn keyword pilrcType EDITABLE ENTRY ERROR EXTENDED | |
54 syn keyword pilrcType FEEDBACK FILE FONTID FORCECOMPRESS FRAME | |
55 syn keyword pilrcType GRAFFITI GRAPHICAL GROUP | |
56 syn keyword pilrcType HASSCROLLBAR HELPID | |
57 syn keyword pilrcType ID INDEX INFORMATION | |
58 syn keyword pilrcType KEYDOWNCHR KEYDOWNKEYCODE KEYDOWNMODIFIERS | |
59 syn keyword pilrcType LANGUAGE LEFTALIGN LEFTANCHOR LONGDATEFORMAT | |
60 syn keyword pilrcType MAX MAXCHARS MEASUREMENTSYSTEM MENUID MIN LOCALE | |
61 syn keyword pilrcType MINUTESWESTOFGMT MODAL MULTIPLELINES | |
62 syn keyword pilrcType NAME NOCOLORTABLE NOCOMPRESS NOFRAME NONEDITABLE | |
63 syn keyword pilrcType NONEXTENDED NONUSABLE NOSAVEBEHIND NUMBER NUMBERFORMAT | |
64 syn keyword pilrcType NUMERIC | |
65 syn keyword pilrcType PAGESIZE | |
66 syn keyword pilrcType RECTFRAME RIGHTALIGN RIGHTANCHOR ROWS | |
67 syn keyword pilrcType SAVEBEHIND SEARCH SCREEN SELECTEDBITMAPID SINGLELINE | |
68 syn keyword pilrcType THUMBID TRANSPARENTINDEX TIMEFORMAT | |
69 syn keyword pilrcType UNDERLINED USABLE | |
70 syn keyword pilrcType VALUE VERTICAL VISIBLEITEMS | |
71 syn keyword pilrcType WARNING WEEKSTARTDAY | |
72 | |
73 " Country | |
74 syn keyword pilrcCountry Australia Austria Belgium Brazil Canada Denmark | |
75 syn keyword pilrcCountry Finland France Germany HongKong Iceland Indian | |
76 syn keyword pilrcCountry Indonesia Ireland Italy Japan Korea Luxembourg Malaysia | |
77 syn keyword pilrcCountry Mexico Netherlands NewZealand Norway Philippines | |
78 syn keyword pilrcCountry RepChina Singapore Spain Sweden Switzerland Thailand | |
79 syn keyword pilrcCountry Taiwan UnitedKingdom UnitedStates | |
80 | |
81 " Language | |
82 syn keyword pilrcLanguage English French German Italian Japanese Spanish | |
83 | |
84 " String | |
85 syn match pilrcString "\"[^"]*\"" | |
86 | |
87 " Number | |
88 syn match pilrcNumber "\<0x\x\+\>" | |
89 syn match pilrcNumber "\<\d\+\>" | |
90 | |
91 " Comment | |
92 syn region pilrcComment start="/\*" end="\*/" | |
93 syn region pilrcComment start="//" end="$" | |
94 | |
95 " Constants | |
96 syn keyword pilrcConstant AUTO AUTOID BOTTOM CENTER PREVBOTTOM PREVHEIGHT | |
97 syn keyword pilrcConstant PREVLEFT PREVRIGHT PREVTOP PREVWIDTH RIGHT | |
98 syn keyword pilrcConstant SEPARATOR | |
99 | |
100 " Identifier | |
101 syn match pilrcIdentifier "\<\h\w*\>" | |
102 | |
103 " Specials | |
104 syn match pilrcType "\<FONT\>" | |
105 syn match pilrcKeyword "\<FONT\>\s*\<ID\>" | |
106 syn match pilrcType "\<TRANSPARENT\>" | |
107 | |
108 " Function | |
109 syn keyword pilrcFunction BEGIN END | |
110 | |
111 " Include | |
112 syn match pilrcInclude "\#include" | |
113 syn match pilrcInclude "\#define" | |
114 syn keyword pilrcInclude equ | |
115 syn keyword pilrcInclude package | |
116 syn region pilrcInclude start="public class" end="}" | |
117 | |
118 syn sync ccomment pilrcComment | |
119 | |
120 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
121 " The default methods for highlighting |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
122 hi def link pilrcKeyword Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
123 hi def link pilrcType Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
124 hi def link pilrcError Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
125 hi def link pilrcCountry SpecialChar |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
126 hi def link pilrcLanguage SpecialChar |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
127 hi def link pilrcString SpecialChar |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
128 hi def link pilrcNumber Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
129 hi def link pilrcComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
130 hi def link pilrcConstant Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
131 hi def link pilrcFunction Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
132 hi def link pilrcInclude SpecialChar |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
133 hi def link pilrcIdentifier Number |
7 | 134 |
135 | |
136 let b:current_syntax = "pilrc" |