--- a/src/javacodegen.c Tue Aug 23 17:31:15 2016 +0200 +++ b/src/javacodegen.c Thu Aug 25 11:30:30 2016 +0200 @@ -104,7 +104,7 @@ } else { if (isstring) { put_htmlescaped(dest, c); - } else if (!check_alnumex(c)) { + } else if (!isalnum(c) && c!='_' && c!='#' && c!='@') { if (word.length > 0 && word.length < WORDBUF_SIZE) { int closespan = 1; if (check_keyword(word, jkeywords)) {