superbol-studio-oss icon indicating copy to clipboard operation
superbol-studio-oss copied to clipboard

col1-6 not recognized in textmate grammar

Open GitMensch opened this issue 1 year ago • 1 comments

As far as I understood a file is first "colored" via a "simple" configuration (textmate grammar), then is re-colored as soon as the LSP kicks in, which also adds semantic tokens.

Given the following sample program:

       program-id. test.
       procedure division.
      *---------------------------------------------------------------*
       P050-SEARCH SECTION.
       P050-00.
+AM005*    special case 1
+AM005     continue.
+AM005*
+AM005 P050-40.
           continue.
      *
       P050-99.
           EXIT.
      /

the columns 1-6 are only sematic token comments - is this possible to also add for the textmate grammar?

Note: you can see this by inserting it into a file (takes 0,5-2 seconds to switch from textmate to semantic) or by "reload window".

GitMensch avatar Dec 27 '24 09:12 GitMensch

you can disable semantic highlighting with editor.semanticHighlighting.enabled

here's my VSCode extension to help with authoring TextMate grammars https://marketplace.visualstudio.com/items?itemName=RedCMD.tmlanguage-syntax-highlighter

RedCMD avatar Aug 09 '25 07:08 RedCMD