annotate runtime/syntax/abap.vim @ 8921:c3e7cc135754 v7.4.1747

commit https://github.com/vim/vim/commit/fe4b18640656ddea41f60cf7a76956c9cc5494d6 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 15 21:47:54 2016 +0200 patch 7.4.1747 Problem: Coverity: missing check for NULL pointer. Solution: Check for out of memory.
author Christian Brabandt <cb@256bit.org>
date Fri, 15 Apr 2016 22:00:07 +0200
parents 78c318784090
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
1 " Vim ABAP syntax file
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
2 " Language: SAP - ABAP/R4
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
3 " Revision: 2.1
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
4 " Maintainer: Marius Piedallu van Wyk <lailoken@gmail.com>
4911
78c318784090 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3920
diff changeset
5 " Last Change: 2013 Jun 13
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
6 " Comment: Thanks to EPI-USE Labs for all your assistance. :)
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
7
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
8 " For version < 6.0: Clear all syntax items
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
9 " For version >= 6.0: Quit when a syntax file was already loaded
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
10 if version < 600
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
11 syntax clear
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
13 finish
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
14 endif
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
15
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
16 " Always ignore case
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
17 syn case ignore
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
18
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
19 " Symbol Operators (space delimited)
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
20 syn match abapSymbolOperator "\W+\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
21 syn match abapSymbolOperator "\W-\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
22 syn match abapSymbolOperator "\W/\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
23 syn match abapSymbolOperator "\W%\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
24 syn match abapSymbolOperator "\W=\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
25 syn match abapSymbolOperator "\W<\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
26 syn match abapSymbolOperator "\W>\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
27 syn match abapSymbolOperator "\W\*\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
28 syn match abapSymbolOperator "\W[<>]=\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
29 syn match abapSymbolOperator "\W<>\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
30 syn match abapSymbolOperator "\W\*\*\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
31 syn match abapSymbolOperator "\[\]"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
32 syn match abapSymbolOperator "->\*\?"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
33 syn match abapSymbolOperator "=>"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
34 syn match abapSymbolOperator "[()~:,\.&$]"
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
35
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
36 " Literals
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
37 syn region abapCharString matchgroup=abapCharString start="'" end="'" contains=abapCharStringEscape
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
38 syn match abapCharStringEscape contained "''"
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
39
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
40 syn region abapString matchgroup=abapString start="`" end="`" contains=abapStringEscape
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
41 syn match abapStringEscape contained "``"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
42
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
43 syn match abapNumber "\-\=\<\d\+\>"
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
44 syn region abapHex matchgroup=abapHex start="X'" end="'"
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
45
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
46 if version >= 600
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
47 setlocal iskeyword=48-57,_,A-Z,a-z,/
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
48 else
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
49 set iskeyword=48-57,_,A-Z,a-z,/
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
50 endif
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
51
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
52 syn match abapNamespace "\</\w\+/"
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
53
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
54 " multi-word statements
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
55 syn match abapComplexStatement "\<\(WITH\W\+\(HEADER\W\+LINE\|FRAME\|KEY\)\|WITH\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
56 syn match abapComplexStatement "\<NO\W\+STANDARD\W\+PAGE\W\+HEADING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
57 syn match abapComplexStatement "\<\(EXIT\W\+FROM\W\+STEP\W\+LOOP\|EXIT\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
58 syn match abapComplexStatement "\<\(BEGIN\W\+OF\W\+\(BLOCK\|LINE\)\|BEGIN\W\+OF\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
59 syn match abapComplexStatement "\<\(END\W\+OF\W\+\(BLOCK\|LINE\)\|END\W\+OF\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
60 syn match abapComplexStatement "\<NO\W\+INTERVALS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
61 syn match abapComplexStatement "\<RESPECTING\W\+BLANKS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
62 syn match abapComplexStatement "\<SEPARATED\W\+BY\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
63 syn match abapComplexStatement "\<USING\(\W\+EDIT\W\+MASK\)\?\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
64 syn match abapComplexStatement "\<WHERE\(\W\+LINE\)\?\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
65 syn match abapComplexStatement "\<RADIOBUTTON\W\+GROUP\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
66 syn match abapComplexStatement "\<REF\W\+TO\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
67 syn match abapComplexStatement "\<\(PUBLIC\|PRIVATE\|PROTECTED\)\(\W\+SECTION\)\?\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
68 syn match abapComplexStatement "\<DELETING\W\+\(TRAILING\|LEADING\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
69 syn match abapComplexStatement "\<\(ALL\W\+OCCURRENCES\)\|\(\(FIRST\|LAST\)\W\+OCCURRENCE\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
70 syn match abapComplexStatement "\<INHERITING\W\+FROM\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
71 syn match abapComplexStatement "\<\(UP\W\+\)\?TO\>"
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
72
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
73 " hyphenated-word statements
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
74 syn match abapComplexStatement "\<LINE-COUNT\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
75 syn match abapComplexStatement "\<ADD-CORRESPONDING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
76 syn match abapComplexStatement "\<AUTHORITY-CHECK\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
77 syn match abapComplexStatement "\<BREAK-POINT\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
78 syn match abapComplexStatement "\<CLASS-DATA\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
79 syn match abapComplexStatement "\<CLASS-METHODS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
80 syn match abapComplexStatement "\<CLASS-METHOD\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
81 syn match abapComplexStatement "\<DIVIDE-CORRESPONDING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
82 syn match abapComplexStatement "\<EDITOR-CALL\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
83 syn match abapComplexStatement "\<END-OF-DEFINITION\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
84 syn match abapComplexStatement "\<END-OF-PAGE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
85 syn match abapComplexStatement "\<END-OF-SELECTION\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
86 syn match abapComplexStatement "\<FIELD-GROUPS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
87 syn match abapComplexStatement "\<FIELD-SYMBOLS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
88 syn match abapComplexStatement "\<FUNCTION-POOL\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
89 syn match abapComplexStatement "\<IS\W\+\(NOT\W\+\)\?\(ASSIGNED\|BOUND\|INITIAL\|SUPPLIED\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
90 syn match abapComplexStatement "\<MOVE-CORRESPONDING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
91 syn match abapComplexStatement "\<MULTIPLY-CORRESPONDING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
92 syn match abapComplexStatement "\<NEW-LINE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
93 syn match abapComplexStatement "\<NEW-PAGE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
94 syn match abapComplexStatement "\<NEW-SECTION\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
95 syn match abapComplexStatement "\<PRINT-CONTROL\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
96 syn match abapComplexStatement "\<RP-PROVIDE-FROM-LAST\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
97 syn match abapComplexStatement "\<SELECT-OPTIONS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
98 syn match abapComplexStatement "\<SELECTION-SCREEN\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
99 syn match abapComplexStatement "\<START-OF-SELECTION\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
100 syn match abapComplexStatement "\<SUBTRACT-CORRESPONDING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
101 syn match abapComplexStatement "\<SYNTAX-CHECK\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
102 syn match abapComplexStatement "\<SYNTAX-TRACE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
103 syn match abapComplexStatement "\<TOP-OF-PAGE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
104 syn match abapComplexStatement "\<TYPE-POOL\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
105 syn match abapComplexStatement "\<TYPE-POOLS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
106 syn match abapComplexStatement "\<LINE-SIZE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
107 syn match abapComplexStatement "\<LINE-COUNT\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
108 syn match abapComplexStatement "\<MESSAGE-ID\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
109 syn match abapComplexStatement "\<DISPLAY-MODE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
110 syn match abapComplexStatement "\<READ\(-ONLY\)\?\>"
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
111
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
112 " ABAP statements
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
113 syn keyword abapStatement ADD ALIAS ALIASES ASSERT ASSIGN ASSIGNING AT
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
114 syn keyword abapStatement BACK
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
115 syn keyword abapStatement CALL CASE CATCH CHECK CLASS CLEAR CLOSE CNT COLLECT COMMIT COMMUNICATION COMPUTE CONCATENATE CONDENSE CONSTANTS CONTINUE CONTROLS CONVERT CREATE CURRENCY
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
116 syn keyword abapStatement DATA DEFINE DEFINITION DEFERRED DELETE DESCRIBE DETAIL DIVIDE DO
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
117 syn keyword abapStatement ELSE ELSEIF ENDAT ENDCASE ENDCLASS ENDDO ENDEXEC ENDFORM ENDFUNCTION ENDIF ENDIFEND ENDINTERFACE ENDLOOP ENDMETHOD ENDMODULE ENDON ENDPROVIDE ENDSELECT ENDTRY ENDWHILE EVENT EVENTS EXEC EXIT EXPORT EXPORTING EXTRACT
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
118 syn keyword abapStatement FETCH FIELDS FORM FORMAT FREE FROM FUNCTION
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
119 syn keyword abapStatement GENERATE GET
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
120 syn keyword abapStatement HIDE
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
121 syn keyword abapStatement IF IMPORT IMPORTING INDEX INFOTYPES INITIALIZATION INTERFACE INTERFACES INPUT INSERT IMPLEMENTATION
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
122 syn keyword abapStatement LEAVE LIKE LINE LOAD LOCAL LOOP
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
123 syn keyword abapStatement MESSAGE METHOD METHODS MODIFY MODULE MOVE MULTIPLY
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
124 syn keyword abapStatement ON OVERLAY OPTIONAL OTHERS
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
125 syn keyword abapStatement PACK PARAMETERS PERFORM POSITION PROGRAM PROVIDE PUT
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
126 syn keyword abapStatement RAISE RANGES RECEIVE RECEIVING REDEFINITION REFERENCE REFRESH REJECT REPLACE REPORT RESERVE RESTORE RETURNING ROLLBACK
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
127 syn keyword abapStatement SCAN SCROLL SEARCH SELECT SET SHIFT SKIP SORT SORTED SPLIT STANDARD STATICS STEP STOP SUBMIT SUBTRACT SUM SUMMARY SUPPRESS
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
128 syn keyword abapStatement TABLES TIMES TRANSFER TRANSLATE TRY TYPE TYPES
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
129 syn keyword abapStatement UNASSIGN ULINE UNPACK UPDATE
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
130 syn keyword abapStatement WHEN WHILE WINDOW WRITE
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
131
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
132 " More statemets
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
133 syn keyword abapStatement LINES
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
134 syn keyword abapStatement INTO GROUP BY HAVING ORDER BY SINGLE
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
135 syn keyword abapStatement APPENDING CORRESPONDING FIELDS OF TABLE
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
136 syn keyword abapStatement LEFT RIGHT OUTER INNER JOIN AS CLIENT SPECIFIED BYPASSING BUFFER ROWS CONNECTING
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
137 syn keyword abapStatement OCCURS STRUCTURE OBJECT PROPERTY
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
138 syn keyword abapStatement CASTING APPEND RAISING VALUE COLOR
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
139 syn keyword abapStatement CHANGING EXCEPTION EXCEPTIONS DEFAULT CHECKBOX COMMENT
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
140 syn keyword abapStatement ID NUMBER FOR TITLE OUTPUT
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
141
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
142 " Special ABAP specific tables:
4911
78c318784090 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3920
diff changeset
143 syn match abapSpecialTables "\<\(sy\|\(hrp\|p\|pa\)\d\d\d\d\|t\d\d\d.\|innnn\)-"me=e-1 contained
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
144 syn match abapStructure "\<\w\+-[^\>]"me=e-2 contains=abapSpecialTables,abapStatement,abapComplexStatement
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
145 syn match abapField "-\w\+"ms=s+1
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
146
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
147 " Pointer
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
148 syn match abapSpecial "<\w\+>"
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
149
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
150 " Abap common constants:
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
151 syn keyword abapSpecial TRUE FALSE NULL SPACE
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
152
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
153 " Includes
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
154 syn region abapInclude start="include" end="." contains=abapComment
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
155
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
156 " Types
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
157 syn keyword abapTypes c n i p f d t x string xstring decfloat16 decfloat34
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
158
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
159 " Atritmitic operators
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
160 syn keyword abapOperator abs sign ceil floor trunc frac acos asin atan cos sin tan
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
161 syn keyword abapOperator cosh sinh tanh exp log log10 sqrt
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
162
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
163 " String operators
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
164 syn keyword abapStatement strlen xstrlen charlen numofchar dbmaxlen
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
165
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
166 syn keyword abapOperator EQ NE LT LE GT GE NOT AND OR XOR IN LIKE BETWEEN
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
167
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
168 " An error? Not strictly... but cannot think of reason this is intended.
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
169 syn match abapError "\.\."
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
170
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
171 " Comments
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
172 syn region abapComment start="^\*" end="$" contains=abapTodo
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
173 syn match abapComment "\".*" contains=abapTodo
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
174 syn keyword abapTodo contained TODO NOTE
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
175 syn match abapTodo "\#EC\W\+\w\+"
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
176
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
177 " Define the default highlighting.
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
178 " For version 5.7 and earlier: only when not done already
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
179 " For version 5.8 and later: only when an item doesn't have highlighting yet
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
180 if version >= 508 || !exists("did_abap_syntax_inits")
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
181 if version < 508
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
182 let did_abap_syntax_inits = 1
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
183 command -nargs=+ HiLink hi link <args>
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
184 else
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
185 command -nargs=+ HiLink hi def link <args>
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
186 endif
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
187
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
188 HiLink abapError Error
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
189 HiLink abapComment Comment
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
190 HiLink abapInclude Include
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
191 HiLink abapStatement Statement
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
192 HiLink abapComplexStatement Statement
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
193 HiLink abapSpecial Special
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
194 HiLink abapNamespace Special
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
195 HiLink abapSpecialTables Special
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
196 HiLink abapSymbolOperator abapOperator
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
197 HiLink abapOperator Operator
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
198 HiLink abapCharString String
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
199 HiLink abapString String
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
200 HiLink abapFloat Float
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
201 HiLink abapTypes Type
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
202 HiLink abapSymbol Structure
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
203 HiLink abapStructure Structure
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
204 HiLink abapField Variable
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
205 HiLink abapNumber Number
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
206 HiLink abapHex Number
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
207
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
208 delcommand HiLink
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
209 endif
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
210
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
211 let b:current_syntax = "abap"
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
212
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
213 " vim: ts=8 sw=2
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
214