annotate runtime/syntax/m3quake.vim @ 29033:0059a17d7a2a

Added tag v8.2.5038 for changeset 361b46a07f5edd372b3a3ca580bdbf06bd425bb9
author Bram Moolenaar <Bram@vim.org>
date Sun, 29 May 2022 15:15:06 +0200
parents 9f41bfdbc6fc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24468
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Modula-3 Quake
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2021 April 15
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if exists("b:current_syntax")
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 finish
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 endif
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 " Keywords
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 syn keyword m3quakeKeyword else end foreach if in is local or proc readonly
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 syn keyword m3quakeKeyword return
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 " Builtin procedures {{{
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 " Generated from m3-sys/m3quake/src/QMachine.m3
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 syn keyword m3quakeProcedure arglist cp_if defined empty equal error escape
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 syn keyword m3quakeProcedure exec cm3_exec file format include make_dir
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 syn keyword m3quakeProcedure normalize path stale try_exec try_cm3_exec
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 syn keyword m3quakeProcedure unlink_file write datetime date datestamp
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20 syn keyword m3quakeProcedure TRACE_INSTR eval_func hostname
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 syn keyword m3quakeProcedure pushd popd cd getwd
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 syn keyword m3quakeProcedure quake
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 syn keyword m3quakeProcedure q_exec q_exec_put q_exec_get
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 syn keyword m3quakeProcedure fs_exists fs_readable fs_writable fs_executable
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 syn keyword m3quakeProcedure fs_isdir fs_isfile fs_contents fs_putfile
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 syn keyword m3quakeProcedure fs_mkdir fs_touch fs_lsdirs fs_lsfiles fs_rmdir
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31 syn keyword m3quakeProcedure fs_rmfile fs_rmrec fs_cp
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 syn keyword m3quakeProcedure pn_valid pn_decompose pn_compose pn_absolute
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34 syn keyword m3quakeProcedure pn_prefix pn_last pn_base pn_lastbase pn_lastext
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 syn keyword m3quakeProcedure pn_join pn_join2 pn_replace_ext pn_parent
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36 syn keyword m3quakeProcedure pn_current
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 syn keyword m3quakeProcedure len
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40 syn keyword m3quakeProcedure split sub skipl skipr squeeze compress pos
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41 syn keyword m3quakeProcedure tcontains bool encode decode subst_chars
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 syn keyword m3quakeProcedure del_chars subst subst_env add_prefix add_suffix
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43 " }}}
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45 " Identifiers
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 syn match m3quakeEnvVariable "$\h\w\+"
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
47
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
48 " Operators
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
49 syn match m3quakeOperator "&"
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
50 syn match m3quakeOperator "\<\%(contains\|not\|and\|or\)\>"
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
51
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
52 " Strings
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
53 syn match m3quakeEscape "\\[\\nrtbf"]" contained display
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
54 syn region m3quakeString start=+"+ end=+"+ contains=m3quakeEscape
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
55
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
56 " Comments
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
57 syn keyword m3quakeTodo TODO FIXME XXX contained
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
58 syn region m3quakeComment start="%" end="$" contains=m3quakeTodo,@Spell
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
59 syn region m3quakeComment start="/\*" end="\*/" contains=m3quakeTodo,@Spell
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
60
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
61 " Default highlighting
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
62 hi def link m3quakeCommand Statement
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
63 hi def link m3quakeComment Comment
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
64 hi def link m3quakeEnvVariable Identifier
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
65 hi def link m3quakeEscape Special
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
66 hi def link m3quakeKeyword Keyword
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
67 hi def link m3quakeOperator Operator
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
68 hi def link m3quakeProcedure Function
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
69 hi def link m3quakeString String
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
70 hi def link m3quakeTodo Todo
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
71
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
72 let b:current_syntax = "m3quake"
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
73
9f41bfdbc6fc Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
74 " vim: nowrap sw=2 sts=2 ts=8 noet fdm=marker: