annotate runtime/syntax/focexec.vim @ 3751:b7eea2409507 v7.3.634

updated for version 7.3.634 Problem: Month/Day format for undo is confusing. (Marcin Szamotulski) Solution: Always use Year/Month/Day, should work for everybody.
author Bram Moolenaar <bram@vim.org>
date Thu, 23 Aug 2012 12:59:02 +0200
parents 7bc41231fbc7
children 43efa4f5a8ea
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: Focus Executable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Rob Brady <robb@datatone.com>
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
4 " Last Change: $Date: 2004/06/13 15:38:04 $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " URL: http://www.datatone.com/~robb/vim/syntax/focexec.vim
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
6 " $Revision: 1.1 $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " this is a very simple syntax file - I will be improving it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " one thing is how to do computes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " I don't like that &vars and FUSE() functions highlight to the same color
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " I think some of these things should get different hilights -
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " should MODIFY commands look different than TABLE?
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " A bunch of useful keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword focexecTable TABLE SUM BY ACROSS END PRINT HOLD LIST NOPRINT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword focexecTable SUBFOOT SUBHEAD HEADING FOOTING PAGE-BREAK AS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword focexecTable WHERE AND OR NOSPLIT FORMAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword focexecModify MODIFY DATA ON FIXFORM PROMPT MATCH COMPUTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword focexecModify GOTO CASE ENDCASE TYPE NOMATCH REJECT INCLUDE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword focexecModify CONTINUE FROM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword focexecNormal CHECK FILE CREATE EX SET IF FILEDEF DEFINE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword focexecNormal REBUILD IF RECORDLIMIT FI EQ JOIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword focexecJoin IN TO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword focexecFileDef DISK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword focexecSet MSG ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match focexecDash "-RUN"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match focexecDash "-PROMPT"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match focexecDash "-WINFORM"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " String and Character constants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn region focexecString1 start=+"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn region focexecString2 start=+'+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 "amper variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match focexecAmperVar "&&\=[A-Z_]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 "fuse functions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword focexecFuse GETUSER GETUSR WHOAMI FEXERR ASIS GETTOK UPCASE LOCASE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword focexecFuse SUBSTR TODAY TODAYI POSIT HHMMSS BYTVAL EDAUT1 BITVAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword focexecFuse BITSON FGETENV FPUTENV HEXBYT SPAWN YM YMI JULDAT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword focexecFuse JULDATI DOWK DOWKI DOWKLI CHGDAT CHGDATI FTOA ATODBL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword focexecFuse SOUNDEX RJUST REVERSE PARAG OVRLAY LJUST CTRFLD CTRAN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword focexecFuse CHKFMT ARGLEN GREGDT GREGDTI DTYMD DTYMDI DTDMY DTDMYI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword focexecFuse DTYDM DTYDMI DTMYD DTMYDI DTDYM DTDYMI DAYMD DAYMDI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword focexecFuse DAMDY DAMDYI DADMY DADMYI AYM AYMI AYMD AYMDI CHKPCK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword focexecFuse IMOD FMOD DMOD PCKOUT EXP BAR SPELLNM SPELLNUM RTCIVP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword focexecFuse PRDUNI PRDNOR RDNORM RDUNIF LCWORD ITOZ RLPHLD IBIPRO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword focexecFuse IBIPRW IBIPRC IBIPRU IBIRCP PTHDAT ITOPACK ITONUM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword focexecFuse DSMEXEC DSMEVAL DSMERRC MSMEXEC MSMEVAL MSMERRC EXTDXI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword focexecFuse BAANHASH EDAYSI DTOG GTOD HSETPT HPART HTIME HNAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword focexecFuse HADD HDIFF HDATE HGETC HCNVRT HDTTM HMIDNT TEMPPATH
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword focexecFuse DATEADD DATEDIF DATEMOV DATECVT EURHLD EURXCH FINDFOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword focexecFuse FERRMES CNCTUSR CURRPATH USERPATH SYSTEM ASKYN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword focexecFuse FUSEMENU POPEDIT POPFILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match focexecNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn match focexecNumber "\<\d\+\.\d*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match focexecComment "-\*.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 if version >= 508 || !exists("did_focexec_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 let did_focexec_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink focexecString1 String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink focexecString2 String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink focexecNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink focexecComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink focexecTable Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 HiLink focexecModify Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 HiLink focexecNormal Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 HiLink focexecSet Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 HiLink focexecDash Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 HiLink focexecFileDef Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 HiLink focexecJoin Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 HiLink focexecAmperVar Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 HiLink focexecFuse Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 let b:current_syntax = "focexec"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 " vim: ts=8