Apostrophe greys out code in Julia session

In Julia sessions, using apostrophe (’), (which is used to transpose a matrix or vector) greys out the code in TeXmacs, as shown in the screenshot.

I do not think this is the desired behavior in this case, as this is not part of a quote or string. How do I fix this?

It is controlled by the parser feature of the string key.

The greyed out part is considered to be string in single quote. Remove the single quote in escape sequences may fix it.

Thanks very much for your suggestion @darcy. I removed the "'" from the escape sequences line, but unfortunately it does not work.

Sorry, I gave the wrong info. I am the author of this syntax highlight part.

Here is the correct config:

(tm-define (parser-feature lan key)
  (:require (and (== lan "julia") (== key "string")))
  `(,(string->symbol key)
    (bool_features 
     "hex_with_8_bits" "hex_with_16_bits"
     "hex_with_32_bits" "octal_upto_3_digits")
    (escape_sequences "\\" "\"" "'" "a" "b" "f" "n" "r" "t" "v" "newline")
    (pairs "\"")))

And I’ve verified its correctness.

Thanks @darcy! So, I replaced the code block provided by you with the corresponding code from lines 102-108 in julia-lang.scm, but it did not work. Should I put them in any other file such as the my-init-texmacs.scm?

Here is the pull request to solve the issue:

You can try https://github.com/XmacsLabs/mogan/releases/tag/v1.2.9.7-rc1