annotate runtime/syntax/pilrc.vim @ 31491:6d42026ad002 v9.0.1078

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