annotate runtime/syntax/voscm.vim @ 8277:fa1e3fa56104 v7.4.1431

commit https://github.com/vim/vim/commit/9e24f0c5c1b1097295d0619d95da66e6b2d83ac9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 27 17:22:27 2016 +0100 patch 7.4.1431 Problem: Including header files twice. Solution: Remove the extra includes.
author Christian Brabandt <cb@256bit.org>
date Sat, 27 Feb 2016 17:30:04 +0100
parents 73fe8baea242
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1620
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
1 " Vim syntax file
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
2 " Language: VOS CM macro
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
3 " Maintainer: Andrew McGill andrewm at lunch.za.net
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
4 " Last Change: Apr 06, 2007
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
5 " Version: 1
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
6 " URL: http://lunch.za.net/
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
7 "
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
8
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
9 " For version 5.x: Clear all syntax items
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
10 " For version 6.x: Quit when a syntax file was already loaded
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
11 if exists("b:current_syntax")
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
12 finish
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
13 endif
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
14
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
15 syn case match
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
16 " set iskeyword=48-57,_,a-z,A-Z
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
17
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
18 syn match voscmStatement "^!"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
19 syn match voscmStatement "&\(label\|begin_parameters\|end_parameters\|goto\|attach_input\|break\|continue\|control\|detach_input\|display_line\|display_line_partial\|echo\|eof\|eval\|if\|mode\|return\|while\|set\|set_string\|then\|else\|do\|done\|end\)\>"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
20 syn match voscmJump "\(&label\|&goto\) *" nextgroup=voscmLabelId
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
21 syn match voscmLabelId contained "\<[A-Za-z][A-Z_a-z0-9]* *$"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
22 syn match voscmSetvar "\(&set_string\|&set\) *" nextgroup=voscmVariable
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
23 syn match voscmError "\(&set_string\|&set\) *&"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
24 syn match voscmVariable contained "\<[A-Za-z][A-Z_a-z0-9]\+\>"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
25 syn keyword voscmParamKeyword contained number req string switch allow byte disable_input hidden length longword max min no_abbrev output_path req required req_for_form word
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
26 syn region voscmParamList matchgroup=voscmParam start="&begin_parameters" end="&end_parameters" contains=voscmParamKeyword,voscmString,voscmParamName,voscmParamId
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
27 syn match voscmParamName contained "\(^\s*[A-Za-z_0-9]\+\s\+\)\@<=\k\+"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
28 syn match voscmParamId contained "\(^\s*\)\@<=\k\+"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
29 syn region par1 matchgroup=par1 start=/(/ end=/)/ contains=voscmFunction,voscmIdentifier,voscmString transparent
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
30 " FIXME: functions should only be allowed after a bracket ... ie (ask ...):
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
31 syn keyword voscmFunction contained abs access after ask before break byte calc ceil command_status concat
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
32 syn keyword voscmFunction contained contents path_name copy count current_dir current_module date date_time
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
33 syn keyword voscmFunction contained decimal directory_name end_of_file exists file_info floor given group_name
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
34 syn keyword voscmFunction contained has_access hexadecimal home_dir index iso_date iso_date_time language_name
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
35 syn keyword voscmFunction contained length lock_type locked ltrim master_disk max message min mod module_info
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
36 syn keyword voscmFunction contained module_name object_name online path_name person_name process_dir process_info
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
37 syn keyword voscmFunction contained process_type quote rank referencing_dir reverse rtrim search
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
38 syn keyword voscmFunction contained software_purchased string substitute substr system_name terminal_info
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
39 syn keyword voscmFunction contained terminal_name time translate trunc unique_string unquote user_name verify
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
40 syn keyword voscmFunction contained where_path
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
41 syn keyword voscmTodo contained TODO FIXME XXX DEBUG NOTE
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
42 syn match voscmTab "\t\+"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
43
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
44 syn keyword voscmCommand add_entry_names add_library_path add_profile analyze_pc_samples attach_default_output attach_port batch bind break_process c c_preprocess call_thru cancel_batch_requests cancel_device_reservation cancel_print_requests cc change_current_dir check_posix cobol comment_on_manual compare_dirs compare_files convert_text_file copy_dir copy_file copy_tape cpp create_data_object create_deleted_record_index create_dir create_file create_index create_record_index create_tape_volumes cvt_fixed_to_stream cvt_stream_to_fixed debug delete_dir delete_file delete_index delete_library_path detach_default_output detach_port dismount_tape display display_access display_access_list display_batch_status display_current_dir display_current_module display_date_time display_default_access_list display_device_info display_dir_status display_disk_info display_disk_usage display_error display_file display_file_status display_line display_notices display_object_module_info display_print_defaults display_print_status display_program_module display_system_usage display_tape_params display_terminal_parameters dump_file dump_record dump_tape edit edit_form emacs enforce_region_locks fortran get_external_variable give_access give_default_access handle_sig_dfl harvest_pc_samples help kill line_edit link link_dirs list list_batch_requests list_devices list_gateways list_library_paths list_modules list_port_attachments list_print_requests list_process_cmd_limits list_save_tape list_systems list_tape list_terminal_types list_users locate_files locate_large_files login logout mount_tape move_device_reservation move_dir move_file mp_debug nls_edit_form pascal pl1 position_tape preprocess_file print profile propagate_access read_tape ready remove_access remove_default_access rename reserve_device restore_object save_object send_message set set_cpu_time_limit set_expiration_date set_external_variable set_file_allocation set_implicit_locking set_index_flags set_language set_library_paths set_line_wrap_width set_log_protected_file set_owner_access set_pipe_file set_priority set_ready set_safety_switch set_second_tape set_tape_drive_params set_tape_file_params set_tape_mount_params set_terminal_parameters set_text_file set_time_zone sleep sort start_logging start_process stop_logging stop_process tail_file text_data_merge translate_links truncate_file unlink update_batch_requests update_print_requests update_process_cmd_limits use_abbreviations use_message_file vcc verify_posix_access verify_save verify_system_access walk_dir where_command where_path who_locked write_tape
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
45
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
46 syn match voscmIdentifier "&[A-Za-z][a-z0-9_A-Z]*&"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
47
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
48 syn match voscmString "'[^']*'"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
49
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
50 " Number formats
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
51 syn match voscmNumber "\<\d\+\>"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
52 "Floating point number part only
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
53 syn match voscmDecimalNumber "\.\d\+\([eE][-+]\=\d\)\=\>"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
54
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
55 "syn region voscmComment start="^[ ]*&[ ]+" end="$"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
56 "syn match voscmComment "^[ ]*&[ ].*$"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
57 "syn match voscmComment "^&$"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
58 syn region voscmComment start="^[ ]*&[ ]" end="$" contains=voscmTodo
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
59 syn match voscmComment "^&$"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
60 syn match voscmContinuation "&+$"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
61
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
62 "syn match voscmIdentifier "[A-Za-z0-9&._-]\+"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
63
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
64 "Synchronization with Statement terminator $
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
65 " syn sync maxlines=100
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
66
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
67 hi def link voscmConditional Conditional
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
68 hi def link voscmStatement Statement
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
69 hi def link voscmSetvar Statement
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
70 hi def link voscmNumber Number
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
71 hi def link voscmDecimalNumber Float
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
72 hi def link voscmString String
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
73 hi def link voscmIdentifier Identifier
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
74 hi def link voscmVariable Identifier
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
75 hi def link voscmComment Comment
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
76 hi def link voscmJump Statement
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
77 hi def link voscmContinuation Macro
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
78 hi def link voscmLabelId String
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
79 hi def link voscmParamList NONE
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
80 hi def link voscmParamId Identifier
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
81 hi def link voscmParamName String
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
82 hi def link voscmParam Statement
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
83 hi def link voscmParamKeyword Statement
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
84 hi def link voscmFunction Function
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
85 hi def link voscmCommand Structure
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
86 "hi def link voscmIdentifier NONE
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
87 "hi def link voscmSpecial Special " not used
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
88 hi def link voscmTodo Todo
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
89 hi def link voscmTab Error
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
90 hi def link voscmError Error
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
91
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
92 let b:current_syntax = "voscm"
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
93
73fe8baea242 updated for version 7.2a
vimboss
parents:
diff changeset
94 " vim: ts=8