highlightjs / highlightjs-structured-text

Highlightjs Structured Text language support IEC 61131-3
BSD 3-Clause "New" or "Revised" License
19 stars 6 forks source link

Add Conversion Function Highlighting #12

Closed engineerjoe440 closed 3 years ago

engineerjoe440 commented 3 years ago

I realized that there was no existing support for the standard IEC 61131-3 conversion functions (BYTE_TO_BOOL, etc) so I crafted some RegEx matches that add this support. I'll open a pull request (#13) for this, but for clarity, here's the main portion that I'm suggesting: image

I would love to hear if you have any other thoughts regarding this suggestion, or if you feel that anything should be changed.

With this new portion, syntax highlighting appears for these conversion functions similar to what might be found below: image

Thank you!