microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
732 stars 243 forks source link

DevOps Syntax Highlithing does not apply for preprocessor or pragma directives. #7556

Closed DavidFeldhoff closed 9 months ago

DavidFeldhoff commented 10 months ago

1. Describe the bug Currently the DevOps Syntax Highlighting isn't applied for preprocessor Symbols

2. To Reproduce Steps to reproduce the behavior:

  1. Install the extension https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.allanghighlights
  2. Go to a file which includes #if not CLEAN22 or create a file with the al snippet below
  3. these directives are not highlighted correctly.
#if not CLEAN23
    [Obsolete('Use Codeunit "Format Address Contact2".FormatAddr2 instead.', '22.0')]
    procedure FormatAddr2(var AddrArray: array[8] of Text[100]; Name: Text[100]; Name2: Text[100]; Contact: Text[100]; Contact2: Text[100]; Addr: Text[100]; Addr2: Text[50]; City: Text[50]; PostCode: Code[20]; County: Text[50]; CountryCode: Code[10])
    begin
#pragma warning disable AL0432
        OnFormatAddr2(AddrArray, Name, Name2, Contact, Contact2, Addr, Addr2, City, PostCode, County, CountryCode);
# pragma warning restore AL0432
    end;
#endif

image

3. Expected behavior That the directives like #pragma warning .. or #if not CLEAN are highlighted correctly in DevOps (e.g. green like in VS Code similar to a comment)

4. Actual behavior e.g. the word not is highlighted, but the word if is not and CLEAN23 as well not, so it's not equal.

5. Versions:

EmilDamsbo commented 9 months ago

Thank you for using the Azure DevOps Syntax Highlighting extension, we appreciate you taking the time to report this. Unfortunately we have decided to not accept this suggestion after all, in order to focus on higher priority items in the backlog.