[Github-comments] [geany/geany] Latex ac (#1011)
Marcelo Garlet Millani
notifications at xxxxx
Wed Apr 27 11:32:31 UTC 2016
Fixes issue #1000 . Geany now correctly autocompletes LaTeX macros.
The difference in behaviour can be illustrated with the following document:
````latex
\newcommand{\macroname}{}
% The following occurrences of \macro are now autocompleted to \macroname
\macro
\alpha\macro
% The following is no longer autocompleted to macroname
macro
% Example with @
\newcommand{\@anothermacro}{}
% Gets autocompleted
\@another
````
The tests were updated to accept this behaviour (since macro tags now start with `\`).
This also identifies macros defined with `\let`, `\newlength` and environments defined with `\renewenvironment`.
Finally, `@` can be used sometimes in a macro name and mostly any character can be used in a label. I added `:@` to wordchars so that they can be used in autocomplete.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1011
-- Commit Summary --
* '\' is included in macro tag.
* Updated copyright.
* Made indentation consistent with the rest of the project.
* Correctly separates LaTeX words.
* Environments can be defined with \renewenvironment as well.
* Correctly add macro tags.
* Macros can also be defined with \let
* Removed my copyright since I don't even know if I could add it.
* Updated tests to include \ in macros.
* Recognizes new lengths as macros.
-- File Changes --
M src/editor.c (31)
M tagmanager/ctags/latex.c (338)
M tests/ctags/3526726.tex.tags (4)
M tests/ctags/bug2886870.tex.tags (6)
M tests/ctags/intro_orig.tex.tags (6)
-- Patch Links --
https://github.com/geany/geany/pull/1011.patch
https://github.com/geany/geany/pull/1011.diff
---
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160427/ebf034eb/attachment.html>
More information about the Github-comments
mailing list