annotate runtime/syntax/abap.vim @ 36515:9c7cfa946771 draft default tip

runtime(tex): extra Number highlighting causes issues Commit: https://github.com/vim/vim/commit/622f6f5b9a9c2b88423f31a98e99cd3324446fcf Author: Christian Brabandt <cb@256bit.org> Date: Mon Nov 11 08:49:04 2024 +0100 runtime(tex): extra Number highlighting causes issues So let's revert "runtime(tex): add Number highlighting to syntax file" This (partly) reverts commits 8e6b5034f32049fd0 and 6065755a39d838aab fixes: #16030 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 11 Nov 2024 09:00:05 +0100
parents d6dde6229b36
children
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
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
3 " Maintainer: Marius Piedallu van Wyk <lailoken@gmail.com>
23573
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15194
diff changeset
4 " Last Change: 2021 Jan 02
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
5 " Comment: Thanks to EPI-USE Labs for all your assistance. :)
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
6
15194
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
7 " Quit when a syntax file was already loaded
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 4911
diff changeset
8 if exists("b:current_syntax")
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
9 finish
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
10 endif
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
11
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
12 " Always ignore case
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
13 syn case ignore
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
14
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
15 " Symbol Operators (space delimited)
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
16 syn match abapSymbolOperator "\W+\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
17 syn match abapSymbolOperator "\W-\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
18 syn match abapSymbolOperator "\W/\W"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
19 syn match abapSymbolOperator "\W%\W"
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 "\[\]"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
28 syn match abapSymbolOperator "->\*\?"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
29 syn match abapSymbolOperator "=>"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
30 syn match abapSymbolOperator "[()~:,\.&$]"
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
31
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
32 " Literals
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
33 syn region abapCharString matchgroup=abapCharString start="'" end="'" contains=abapCharStringEscape
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
34 syn match abapCharStringEscape contained "''"
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
35
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
36 syn region abapString matchgroup=abapString start="`" end="`" contains=abapStringEscape
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
37 syn match abapStringEscape contained "``"
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
38
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
39 syn match abapNumber "\-\=\<\d\+\>"
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
40 syn region abapHex matchgroup=abapHex start="X'" end="'"
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
41
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 4911
diff changeset
42 setlocal iskeyword=48-57,_,A-Z,a-z,/
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
43
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
44 syn match abapNamespace "\</\w\+/"
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
45
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
46 " multi-word statements
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
47 syn match abapComplexStatement "\<\(WITH\W\+\(HEADER\W\+LINE\|FRAME\|KEY\)\|WITH\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
48 syn match abapComplexStatement "\<NO\W\+STANDARD\W\+PAGE\W\+HEADING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
49 syn match abapComplexStatement "\<\(EXIT\W\+FROM\W\+STEP\W\+LOOP\|EXIT\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
50 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
51 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
52 syn match abapComplexStatement "\<NO\W\+INTERVALS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
53 syn match abapComplexStatement "\<RESPECTING\W\+BLANKS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
54 syn match abapComplexStatement "\<SEPARATED\W\+BY\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
55 syn match abapComplexStatement "\<USING\(\W\+EDIT\W\+MASK\)\?\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
56 syn match abapComplexStatement "\<WHERE\(\W\+LINE\)\?\>"
15194
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
57 syn match abapComplexStatement "\<GET\W\+\(TIME\(\W\+STAMP\)\?\(\W\+FIELD\)\?\|PF-STATUS\|BADI\|BIT\|CONNECTION\|CURSOR\|REFERENCE\W\+OF\)\>"
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
58 syn match abapComplexStatement "\<RADIOBUTTON\W\+GROUP\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
59 syn match abapComplexStatement "\<REF\W\+TO\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
60 syn match abapComplexStatement "\<\(PUBLIC\|PRIVATE\|PROTECTED\)\(\W\+SECTION\)\?\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
61 syn match abapComplexStatement "\<DELETING\W\+\(TRAILING\|LEADING\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
62 syn match abapComplexStatement "\<\(ALL\W\+OCCURRENCES\)\|\(\(FIRST\|LAST\)\W\+OCCURRENCE\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
63 syn match abapComplexStatement "\<INHERITING\W\+FROM\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
64 syn match abapComplexStatement "\<\(UP\W\+\)\?TO\>"
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
65
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
66 " hyphenated-word statements
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
67 syn match abapComplexStatement "\<LINE-COUNT\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
68 syn match abapComplexStatement "\<ADD-CORRESPONDING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
69 syn match abapComplexStatement "\<AUTHORITY-CHECK\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
70 syn match abapComplexStatement "\<BREAK-POINT\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
71 syn match abapComplexStatement "\<CLASS-DATA\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
72 syn match abapComplexStatement "\<CLASS-METHODS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
73 syn match abapComplexStatement "\<CLASS-METHOD\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
74 syn match abapComplexStatement "\<DIVIDE-CORRESPONDING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
75 syn match abapComplexStatement "\<EDITOR-CALL\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
76 syn match abapComplexStatement "\<END-OF-DEFINITION\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
77 syn match abapComplexStatement "\<END-OF-PAGE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
78 syn match abapComplexStatement "\<END-OF-SELECTION\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
79 syn match abapComplexStatement "\<FIELD-GROUPS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
80 syn match abapComplexStatement "\<FIELD-SYMBOLS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
81 syn match abapComplexStatement "\<FUNCTION-POOL\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
82 syn match abapComplexStatement "\<IS\W\+\(NOT\W\+\)\?\(ASSIGNED\|BOUND\|INITIAL\|SUPPLIED\)\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
83 syn match abapComplexStatement "\<MOVE-CORRESPONDING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
84 syn match abapComplexStatement "\<MULTIPLY-CORRESPONDING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
85 syn match abapComplexStatement "\<NEW-LINE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
86 syn match abapComplexStatement "\<NEW-PAGE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
87 syn match abapComplexStatement "\<NEW-SECTION\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
88 syn match abapComplexStatement "\<PRINT-CONTROL\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
89 syn match abapComplexStatement "\<RP-PROVIDE-FROM-LAST\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
90 syn match abapComplexStatement "\<SELECT-OPTIONS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
91 syn match abapComplexStatement "\<SELECTION-SCREEN\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
92 syn match abapComplexStatement "\<START-OF-SELECTION\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
93 syn match abapComplexStatement "\<SUBTRACT-CORRESPONDING\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
94 syn match abapComplexStatement "\<SYNTAX-CHECK\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
95 syn match abapComplexStatement "\<SYNTAX-TRACE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
96 syn match abapComplexStatement "\<TOP-OF-PAGE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
97 syn match abapComplexStatement "\<TYPE-POOL\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
98 syn match abapComplexStatement "\<TYPE-POOLS\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
99 syn match abapComplexStatement "\<LINE-SIZE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
100 syn match abapComplexStatement "\<LINE-COUNT\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
101 syn match abapComplexStatement "\<MESSAGE-ID\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
102 syn match abapComplexStatement "\<DISPLAY-MODE\>"
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
103 syn match abapComplexStatement "\<READ\(-ONLY\)\?\>"
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
104
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
105 " ABAP statements
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
106 syn keyword abapStatement ADD ALIAS ALIASES ASSERT ASSIGN ASSIGNING AT
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
107 syn keyword abapStatement BACK
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
108 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
109 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
110 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
111 syn keyword abapStatement FETCH FIELDS FORM FORMAT FREE FROM FUNCTION
15194
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
112 syn keyword abapStatement GENERATE
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
113 syn keyword abapStatement HIDE
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
114 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
115 syn keyword abapStatement LEAVE LIKE LINE LOAD LOCAL LOOP
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
116 syn keyword abapStatement MESSAGE METHOD METHODS MODIFY MODULE MOVE MULTIPLY
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
117 syn keyword abapStatement ON OVERLAY OPTIONAL OTHERS
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
118 syn keyword abapStatement PACK PARAMETERS PERFORM POSITION PROGRAM PROVIDE PUT
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
119 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
120 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
121 syn keyword abapStatement TABLES TIMES TRANSFER TRANSLATE TRY TYPE TYPES
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
122 syn keyword abapStatement UNASSIGN ULINE UNPACK UPDATE
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
123 syn keyword abapStatement WHEN WHILE WINDOW WRITE
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
124
33577
d6dde6229b36 runtime: Fix more typos (#13354)
Christian Brabandt <cb@256bit.org>
parents: 23573
diff changeset
125 " More statements
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
126 syn keyword abapStatement LINES
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
127 syn keyword abapStatement INTO GROUP BY HAVING ORDER BY SINGLE
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
128 syn keyword abapStatement APPENDING CORRESPONDING FIELDS OF TABLE
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
129 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
130 syn keyword abapStatement OCCURS STRUCTURE OBJECT PROPERTY
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
131 syn keyword abapStatement CASTING APPEND RAISING VALUE COLOR
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
132 syn keyword abapStatement CHANGING EXCEPTION EXCEPTIONS DEFAULT CHECKBOX COMMENT
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
133 syn keyword abapStatement ID NUMBER FOR TITLE OUTPUT
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
134
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
135 " Special ABAP specific tables:
4911
78c318784090 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3920
diff changeset
136 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
137 syn match abapStructure "\<\w\+-[^\>]"me=e-2 contains=abapSpecialTables,abapStatement,abapComplexStatement
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
138 syn match abapField "-\w\+"ms=s+1
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
139
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
140 " Pointer
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
141 syn match abapSpecial "<\w\+>"
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
142
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
143 " Abap common constants:
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
144 syn keyword abapSpecial TRUE FALSE NULL SPACE
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
145
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
146 " Includes
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
147 syn region abapInclude start="include" end="." contains=abapComment
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
148
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
149 " Types
15194
8b334e4cb97f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
150 syn keyword abapTypes c n i int8 p f d t x string xstring decfloat16 decfloat34
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
151
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
152 " Atritmitic operators
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
153 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
154 syn keyword abapOperator cosh sinh tanh exp log log10 sqrt
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
155
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
156 " String operators
3920
c53344bacabf Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3893
diff changeset
157 syn keyword abapStatement strlen xstrlen charlen numofchar dbmaxlen
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
158
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
159 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
160
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
161 " An error? Not strictly... but cannot think of reason this is intended.
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
162 syn match abapError "\.\."
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
163
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
164 " Comments
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
165 syn region abapComment start="^\*" end="$" contains=abapTodo
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
166 syn match abapComment "\".*" contains=abapTodo
828
01583c79d5f4 updated for version 7.0d03
vimboss
parents: 22
diff changeset
167 syn keyword abapTodo contained TODO NOTE
3893
c3036f1dca68 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 828
diff changeset
168 syn match abapTodo "\#EC\W\+\w\+"
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
169
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
170 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 4911
diff changeset
171 " Only when an item doesn't have highlighting yet
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
172
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
173 hi def link abapError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
174 hi def link abapComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
175 hi def link abapInclude Include
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
176 hi def link abapStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
177 hi def link abapComplexStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
178 hi def link abapSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
179 hi def link abapNamespace Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
180 hi def link abapSpecialTables Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
181 hi def link abapSymbolOperator abapOperator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
182 hi def link abapOperator Operator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
183 hi def link abapCharString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
184 hi def link abapString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
185 hi def link abapFloat Float
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
186 hi def link abapTypes Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
187 hi def link abapSymbol Structure
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
188 hi def link abapStructure Structure
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
189 hi def link abapField Variable
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
190 hi def link abapNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
191 hi def link abapHex Number
22
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
192
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
193
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
194 let b:current_syntax = "abap"
cc049b00ee70 updated for version 7.0014
vimboss
parents:
diff changeset
195
23573
e2e2cc5d0856 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15194
diff changeset
196 " vim: ts=8 sw=2