pvl / abap.tmbundle

TextMate support for ABAP
21 stars 9 forks source link

Whitespace #85

Closed mbtools closed 1 year ago

mbtools commented 1 year ago

Some keywords are not identified properly if there's whitespace other than "space":

as-is:

TYPES itab_type1 TYPE STANDARD TABLE OF data_type ...   "Standard table type
TYPES itab_type2 LIKE SORTED   TABLE OF data_object ... "Sorted table type

DATA  itab1      TYPE          TABLE OF data_type ...   "Standard table by default
DATA  itab2      TYPE HASHED   TABLE OF data_type ...   "Hashed table
DATA  itab3      TYPE                   table_type ...  "Based on an existing internal table type 
DATA  itab4      LIKE                   table ...       "Based on an existing internal table     

image

should be:

TYPES itab_type1 TYPE STANDARD TABLE OF data_type ...   "Standard table type
TYPES itab_type2 LIKE SORTED   TABLE OF data_object ... "Sorted table type

DATA  itab1      TYPE          TABLE OF data_type ...   "Standard table by default
DATA  itab2      TYPE HASHED   TABLE OF data_type ...   "Hashed table
DATA  itab3      TYPE                   table_type ...  "Based on an existing internal table type 
DATA  itab4      LIKE                   table ...       "Based on an existing internal table     
mbtools commented 1 year ago

If someone is using tab, shift-space, or other whitespace than just space, syntax-highlight will not work properly. Code needs to be adjusted accordingly.