IBM / zopeneditor-about

IBM Z Open Editor: File issues here!
https://ibm.github.io/zopeneditor-about
Apache License 2.0
48 stars 21 forks source link

HLASM - Improved textmate grammar #250

Open FALLAI-Denis opened 2 years ago

FALLAI-Denis commented 2 years ago

Development environment used

Problem Description

As documented in issue #223, the assembler textmate grammar has some problems.

I offer you an alternative textmate grammar that I have built.

It is not perfect either, but it fixes the handling of character strings containing spaces or accented characters, and improves the processing of operands.

See attached files, yaml format and json format.

myhlasm.tmLanguage.json.txt myhlasm.tmLanguage.yaml.txt

FALLAI-Denis commented 2 years ago

Original textmate grammar versus alternative textmate grammar:

image

FALLAI-Denis commented 2 years ago

Hi,

The proposed grammar does not correctly manage instructions written on several lines (presence of a continuation character in column 72).

It is based solely on the presence of information before column 16, except for the label.

I will try to improve it by managing a "begin/end" or "begin/while" group based on the presence of a non-blank character in column 72.