Menu

#45 shell syntax highlighting for i18n strings

open
nobody
None
5
2005-10-05
2005-10-05
No

An i18n'ed string of the form $"some text" gets
displayed incorrectly: The $ is interpreted as the
start of a substitution, the first " is consumed as an
(unrecognized) variable name, and then string / normal
mode are exchanged. The following patch lets joe parse
the i18n string as a string_dq; I could not find any
adverse effects of re-interpreting the character after
the $.

*** /etc/joe/syntax/sh.jsf.orig Wed Oct 5 14:53:04 2005
--- /etc/joe/syntax/sh.jsf Wed Oct 5 14:53:04 2005
***************
*** 38,44 ****
* idle

:subst Var
! * idle
"{" subst_brack
"a-zA-Z_" subst_name
"0-9*@?\-$_!" idle
--- 38,44 ----
* idle

:subst Var
! * idle noeat
"{" subst_brack
"a-zA-Z_" subst_name
"0-9*@?\-$_!" idle

Discussion


Log in to post a comment.