zk-phi / magic-latex-buffer

Magical syntax highlighting for LaTeX-mode buffers
152 stars 13 forks source link

symbols followed by ' are not detected correctly #10

Closed guraltsev closed 9 years ago

guraltsev commented 9 years ago

For example $\phi=0$ displays correctly $\phi(x)=0$ also, but $\phi'(x)=0$ gets displayed wrong in the sense that the \phidoesn't get detected.

The culprit is syntax table for latex-mode and AUCTeX: these modes considers the quote (or prime) character ' to be a word forming character. This seams reasonable as in text-mode this is also the case: this way text editing and functions work as expected. However LaTeX interprets ' as a delimiter in commands.

I am no emacs hacker so I do not know if this is possible:

Here is a screenshot of the problem snapshot-prime-syntax :

guraltsev commented 9 years ago

I think for now one can close this issue