The TCL parser is split into three parts:
tcl - for parsing pure tcl code
tcloo - for parsing tcloo OO extension of tcl
itcl - for parsing itcl OO extension of tcl
TCLOO and ITCL parsers run the TCL parser as a subparser but it isn't
possible to combine all three parsers at the same time. Since TCLOO
is the "modern" (but 10 years old) OO extension, it seems to be a better
choice for Geany (if needed, a new filetype could be introduced for
ITCL).
Since it's run as a subparser, we need to introduce also a subparser
tag type mapping for TCL (types are mapped to the same values here
because they don't conflict with the TCLOO types).
Also, the new parser reports full scope information so take care of that.
In addition, scope by the TCL parser is prefixed by :: which we need
to strip because the TM doesn't expect scope in this format.
Update the unit test based on several uctags unit tests to cover the
tags we generate with this parser.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3157
-- Commit Summary --
* Use the upstream TCL parser
-- File Changes --
M ctags/Makefile.am (4)
D ctags/parsers/geany_tcl.c (145)
A ctags/parsers/tcl.c (716)
A ctags/parsers/tcl.h (51)
A ctags/parsers/tcloo.c (201)
M meson.build (4)
M src/filetypes.c (2)
M src/tagmanager/tm_parser.c (31)
M src/tagmanager/tm_parser.h (1)
M src/tagmanager/tm_parsers.h (3)
M tests/ctags/simple.tcl (59)
M tests/ctags/simple.tcl.tags (19)
-- Patch Links --
https://github.com/geany/geany/pull/3157.patchhttps://github.com/geany/geany/pull/3157.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3157
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/3157(a)github.com>
I more or less pushed all the remaining ctags parsers in the recent PRs so here's a short summary of the remaining diffs:
* geany_docbook.c: I think @masatake wanted to make this a proper XML parser in https://github.com/universal-ctags/ctags/pull/2198 which isn't probably interesting for us as we'd need to introduce a dependency on some XML parser. In any case, the parser is simple and there should be no problem to maintain it by ourselves.
* geany_matlab.c: Upstream uctags uses a regex-based parser which extracts some more tags, on the other hand regex parsers tend to be a bit slow so I'd stick with the current (again simple) parser for Geany (right now I don't feel very motivated to improve this parser so it can replace the regex-based parser).
geany_c.c (used as a parser for Java, C#, D, Vala) and geany_lcpp.c (preprocessor for geany_c.c):
1. I'd like to first simplify these by removing the C, C++, Vera parsers which we don't use so there's less code to compare. I already did this in uctags in https://github.com/universal-ctags/ctags/pull/3332 and I'd do something similar in Geany.
2. Next, I would try to modify it so it uses `cpreprocessor.c` instead of the `geany_lcpp.c` preprocessor. The biggest difference is how function signatures are collected, I'd probably use the uctags implementation.
3. We should then decide what to do with the Vala parser which is present in Geany but not in uctags c.c. There's a PR in uctags https://github.com/universal-ctags/ctags/pull/2677 implementing this parser but I'm not sure how ready it is. Another alternative is to update universal ctags c.c with Vala. Yet another option is a hybrid approach where we could extract Vala from c.c in a similar way to (1), keep using it and eventually migrate to uctags Vala implementation when it is ready.
4. Finally, the rest will have to be synced piece by piece.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3170
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/3170(a)github.com>
Hello
Has somebody a syntax highlighting file for the SPICE?
Regards.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3201
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/3201(a)github.com>
Continued from https://github.com/geany/geany/pull/3178#issuecomment-1123699462
@kugel- Does that mean you will need a separate set of filetype files with the escape command added to all the build commands? Or am I misunderstanding "escape command"?
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/3199
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/repo-discussions/3199(a)github.com>
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3200
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/3200(a)github.com>
geany 1.38 (built on 2021-10-09 with GTK 3.24.30, GLib 2.68.4)
Fedora 34
Hi,
I've finally understand (not solve) the problem. I was thinking for long that the completion wasn't working anymore.
I just realize it works, but only on my left screen, when geany is on my right screen, the completion windows is going over the border of the screen and then not shown.
I finally decided to tell my computer that my left screen is on my right, but it's not the best solution.
Thanks for this great software,
Titouan
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3192
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/3192(a)github.com>
Sorry for the confused post before, my GFX card failed, so it was sent from the phone which thought it knew better than me what I wanted to say. Due to express delivery of a new card I'm back now, s/b "to run" or "to spawn", not both.
Otherwise LGTM.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/commit/3b35cb891843703a60a305bff2ef8b956ad3a…
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/commit/3b35cb891843703a60a305bff2ef8b956ad3a314/73361407(a)github.com>
To run to spawn?
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/commit/3b35cb891843703a60a305bff2ef8b956ad3a…
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/commit/3b35cb891843703a60a305bff2ef8b956ad3a314/73355274(a)github.com>
I use newest git version geany, the auto-close plugin is in repo of ubuntu 22.04 one.
When I press `{`, it come out `{}}`. same with `[` and `(`.
Of couse I disabled auto-close functions in Preferences.
It seems auto-close plugin no update for 3 years.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1173
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany-plugins/issues/1173(a)github.com>
e.g.
*abc
123
*xyz
mark lines with regular expression : "^\*.+$"
i wish that after mark the two lines, i could copy it for paste.
thanks.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3197
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/3197(a)github.com>