You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My guess this is due to the delimiter being non-standard (not X12 standard, which I understand isn't exactly normal EDI, but I wrote this against X12).
The EDI delimiter is dynamic, but unfortunately, VSCode syntax highlighting is static (and rather limited). I couldn't find a way to apply the grammar conditionally based on the lexed tokens. Also, VSCode only supports one grammar per file extension, so there isn't a way to switch grammars, even based on user input.
I haven't touched TextMate syntax in a while, this is just from memory writing the EDI syntax grammar 5 years ago.
Originally, my other plan was to handle syntax highlighting in the extension, rather than using VSCode's built-in handling of custom grammar, but performance wise (and that you can have multiple EDI documents in a file) made that a no-go.
Thanks for writing this extension, very helpful.
One issue I have is that syntax highlighting is not working right for me. Segment names and Data are the same color. How do I fix that?
Thanks.
The text was updated successfully, but these errors were encountered: