xref: /vim-8.2.3635/runtime/syntax/focexec.vim (revision 6c391a74)
1071d4279SBram Moolenaar" Vim syntax file
2071d4279SBram Moolenaar" Language:	Focus Executable
3071d4279SBram Moolenaar" Maintainer:	Rob Brady <[email protected]>
45c73622aSBram Moolenaar" Last Change:	$Date: 2004/06/13 15:38:04 $
5071d4279SBram Moolenaar" URL:		http://www.datatone.com/~robb/vim/syntax/focexec.vim
65c73622aSBram Moolenaar" $Revision: 1.1 $
7071d4279SBram Moolenaar
8071d4279SBram Moolenaar" this is a very simple syntax file - I will be improving it
9071d4279SBram Moolenaar" one thing is how to do computes
10071d4279SBram Moolenaar" I don't like that &vars and FUSE() functions highlight to the same color
11*6c391a74SBram Moolenaar" I think some of these things should get different highlights -
12071d4279SBram Moolenaar"  should MODIFY commands look different than TABLE?
13071d4279SBram Moolenaar
1489bcfda6SBram Moolenaar" quit when a syntax file was already loaded
1589bcfda6SBram Moolenaarif exists("b:current_syntax")
16071d4279SBram Moolenaar  finish
17071d4279SBram Moolenaarendif
18071d4279SBram Moolenaar
19071d4279SBram Moolenaarsyn case match
20071d4279SBram Moolenaar
21071d4279SBram Moolenaar" A bunch of useful keywords
22071d4279SBram Moolenaarsyn keyword focexecTable	TABLE SUM BY ACROSS END PRINT HOLD LIST NOPRINT
23071d4279SBram Moolenaarsyn keyword focexecTable	SUBFOOT SUBHEAD HEADING FOOTING PAGE-BREAK AS
24071d4279SBram Moolenaarsyn keyword focexecTable	WHERE AND OR NOSPLIT FORMAT
25071d4279SBram Moolenaarsyn keyword focexecModify	MODIFY DATA ON FIXFORM PROMPT MATCH COMPUTE
26071d4279SBram Moolenaarsyn keyword focexecModify	GOTO CASE ENDCASE TYPE NOMATCH REJECT INCLUDE
27071d4279SBram Moolenaarsyn keyword focexecModify	CONTINUE FROM
28071d4279SBram Moolenaarsyn keyword focexecNormal	CHECK FILE CREATE EX SET IF FILEDEF DEFINE
29071d4279SBram Moolenaarsyn keyword focexecNormal	REBUILD IF RECORDLIMIT FI EQ JOIN
30071d4279SBram Moolenaarsyn keyword focexecJoin		IN TO
31071d4279SBram Moolenaarsyn keyword focexecFileDef	DISK
32071d4279SBram Moolenaarsyn keyword focexecSet		MSG ALL
33071d4279SBram Moolenaarsyn match   focexecDash		"-RUN"
34071d4279SBram Moolenaarsyn match   focexecDash		"-PROMPT"
35071d4279SBram Moolenaarsyn match   focexecDash		"-WINFORM"
36071d4279SBram Moolenaar
37071d4279SBram Moolenaar" String and Character constants
38071d4279SBram Moolenaarsyn region  focexecString1	start=+"+ end=+"+
39071d4279SBram Moolenaarsyn region  focexecString2	start=+'+ end=+'+
40071d4279SBram Moolenaar
41071d4279SBram Moolenaar"amper variables
42071d4279SBram Moolenaarsyn match   focexecAmperVar	"&&\=[A-Z_]\+"
43071d4279SBram Moolenaar
44071d4279SBram Moolenaar"fuse functions
45071d4279SBram Moolenaarsyn keyword focexecFuse GETUSER GETUSR WHOAMI FEXERR ASIS GETTOK UPCASE LOCASE
46071d4279SBram Moolenaarsyn keyword focexecFuse SUBSTR TODAY TODAYI POSIT HHMMSS BYTVAL EDAUT1 BITVAL
47071d4279SBram Moolenaarsyn keyword focexecFuse BITSON FGETENV FPUTENV HEXBYT SPAWN YM YMI JULDAT
48071d4279SBram Moolenaarsyn keyword focexecFuse JULDATI DOWK DOWKI DOWKLI CHGDAT CHGDATI FTOA ATODBL
49071d4279SBram Moolenaarsyn keyword focexecFuse SOUNDEX RJUST REVERSE PARAG OVRLAY LJUST CTRFLD CTRAN
50071d4279SBram Moolenaarsyn keyword focexecFuse CHKFMT ARGLEN GREGDT GREGDTI DTYMD DTYMDI DTDMY DTDMYI
51071d4279SBram Moolenaarsyn keyword focexecFuse DTYDM DTYDMI DTMYD DTMYDI DTDYM DTDYMI DAYMD DAYMDI
52071d4279SBram Moolenaarsyn keyword focexecFuse DAMDY DAMDYI DADMY DADMYI AYM AYMI AYMD AYMDI CHKPCK
53071d4279SBram Moolenaarsyn keyword focexecFuse IMOD FMOD DMOD PCKOUT EXP BAR SPELLNM SPELLNUM RTCIVP
54071d4279SBram Moolenaarsyn keyword focexecFuse PRDUNI PRDNOR RDNORM RDUNIF LCWORD ITOZ RLPHLD IBIPRO
55071d4279SBram Moolenaarsyn keyword focexecFuse IBIPRW IBIPRC IBIPRU IBIRCP PTHDAT ITOPACK ITONUM
56071d4279SBram Moolenaarsyn keyword focexecFuse DSMEXEC DSMEVAL DSMERRC MSMEXEC MSMEVAL MSMERRC EXTDXI
57071d4279SBram Moolenaarsyn keyword focexecFuse BAANHASH EDAYSI DTOG GTOD HSETPT HPART HTIME HNAME
58071d4279SBram Moolenaarsyn keyword focexecFuse HADD HDIFF HDATE HGETC HCNVRT HDTTM HMIDNT TEMPPATH
59071d4279SBram Moolenaarsyn keyword focexecFuse DATEADD DATEDIF DATEMOV DATECVT EURHLD EURXCH FINDFOC
60071d4279SBram Moolenaarsyn keyword focexecFuse FERRMES CNCTUSR CURRPATH USERPATH SYSTEM ASKYN
61071d4279SBram Moolenaarsyn keyword focexecFuse FUSEMENU POPEDIT POPFILE
62071d4279SBram Moolenaar
63071d4279SBram Moolenaarsyn match   focexecNumber	"\<\d\+\>"
64071d4279SBram Moolenaarsyn match   focexecNumber	"\<\d\+\.\d*\>"
65071d4279SBram Moolenaar
66071d4279SBram Moolenaarsyn match   focexecComment	"-\*.*"
67071d4279SBram Moolenaar
68071d4279SBram Moolenaar" Define the default highlighting.
6989bcfda6SBram Moolenaar" Only when an item doesn't have highlighting yet
70071d4279SBram Moolenaar
71f37506f6SBram Moolenaarhi def link focexecString1		String
72f37506f6SBram Moolenaarhi def link focexecString2		String
73f37506f6SBram Moolenaarhi def link focexecNumber		Number
74f37506f6SBram Moolenaarhi def link focexecComment		Comment
75f37506f6SBram Moolenaarhi def link focexecTable		Keyword
76f37506f6SBram Moolenaarhi def link focexecModify		Keyword
77f37506f6SBram Moolenaarhi def link focexecNormal		Keyword
78f37506f6SBram Moolenaarhi def link focexecSet		Keyword
79f37506f6SBram Moolenaarhi def link focexecDash		Keyword
80f37506f6SBram Moolenaarhi def link focexecFileDef		Keyword
81f37506f6SBram Moolenaarhi def link focexecJoin		Keyword
82f37506f6SBram Moolenaarhi def link focexecAmperVar	Identifier
83f37506f6SBram Moolenaarhi def link focexecFuse		Function
84071d4279SBram Moolenaar
85071d4279SBram Moolenaar
86071d4279SBram Moolenaarlet b:current_syntax = "focexec"
87071d4279SBram Moolenaar
88071d4279SBram Moolenaar" vim: ts=8
89