Now plain text is treated as string, so there is no longer any need for 
LaTeX-specific treatment in editor.c (other than defining wordchar). I had to 
slightly change the lexer so that `@` would be recognized as part of a command. 
I submitted the changes to the scintilla repository, but haven't received any 
answer yet.

The main problem now is that there is no autocomplete for labels, since they 
are treated as plain text by the lexer. Without changing scintilla, I'm afraid 
it would be complicated to fix this. However, it is common practice in LaTeX to 
name labels like `fig:my_plot`, so the user can type `fig:` and then force 
autocomplete, which will correctly show the adequate suggestions.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1011#issuecomment-216610269

Reply via email to