Skip to content

Make sh.highlight

[GB.HIGHLIGHT]

  • NEW: create initial draft for sh highlight file

Sorry Benoit i do not know regex well enough to be able to do this properly. When it was gambas code i could figure it out, now I am completely clueless in a regex world i do not understand at all.

this commit "kind of" works but it has problems.

Problems are things like the keyword rm will be highlighted if the letters rm exists in another word like format (the rm will highlight inside the word)

also the comment hash # is finding any # char and considering the rest of the line a comment even when # is used inside an assignment like "LEN=${#XAR[@]}" i tried to make "# " (with a space) only be comments but like i say, i know nothing of regex.

Merge request reports