[Github-comments] Re: [geany/geany] Q: optlib parsers in ctags (Issue #3557)

2023-09-13 Thread Masatake YAMATO via Github-comments
Thank you. I will merge the optlib-based Forth parser first. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3557#issuecomment-1717625885 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Q: optlib parsers in ctags (Issue #3557)

2023-09-13 Thread Masatake YAMATO via Github-comments
Closed #3557 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3557#event-10359642528 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Q: optlib parsers in ctags (Issue #3557)

2023-09-12 Thread Masatake YAMATO via Github-comments
I have evaluated the performance of the .ctags based Forth parser with https://github.com/universal-ctags/codebase. ``` [yamato@dev64]~/var/codebase% ./codebase ctags --ctags ~/bin/ctags Forth version: db9fe7e0 features: +wildcards +regex +iconv +debug +option-directory +xpath +json +interacti

[Github-comments] [geany/geany] Q: optlib parsers in ctags (Issue #3557)

2023-09-12 Thread Masatake YAMATO via Github-comments
(Please let me know if I asked the same question ago.) In Universal Ctags, people can write a parser in C language or .ctags language, which I named optlib. The code written in optlib is translated into C language with regcomp/regexec calls while building a ctags executable. The optlib is extre

[Github-comments] Re: [geany/geany] Q: symbol names used in ctags (Issue #3510)

2023-05-31 Thread Masatake YAMATO via Github-comments
@techee, thank you. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3510#issuecomment-1571067997 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Q: symbol names used in ctags (Issue #3510)

2023-05-31 Thread Masatake YAMATO via Github-comments
Closed #3510 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3510#event-9396269668 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Q: symbol names used in ctags (Issue #3510)

2023-05-31 Thread Masatake YAMATO via Github-comments
Thank you. How about `long` returned from mio_tell and passed to mio_seek? I will introduce `mio_long` or `mio_off_t`. Is it acceptable? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3510#issuecomment-1570598082 You are receiving this because you ar

[Github-comments] Re: [geany/geany] Q: symbol names used in ctags (Issue #3510)

2023-05-31 Thread Masatake YAMATO via Github-comments
> @masatake AFAICT there is no difference between latest git ctags > [mio.c](https://github.com/universal-ctags/ctags/blob/master/main/mio.c) and > latest git Geany > [mio.c](https://github.com/geany/geany/blob/master/ctags/main/mio.c). @elextr thank you for responding. I'm very surprised at t

[Github-comments] [geany/geany] Q: symbol names used in ctags (Issue #3510)

2023-05-30 Thread Masatake YAMATO via Github-comments
ctags links modified version of mio. geany may also link genuine mio. Why is no trouble reported ever in this area? Do you use any unique tricks? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3510 You are receiving this because you are subscribed t

Re: [Github-comments] [geany/geany] R outline improved for environments and R6 classes, = sign added as well (#2376)

2020-10-29 Thread Masatake YAMATO
u-ctags now supports R6Class(x) ( and setClass() ). See https://github.com/universal-ctags/ctags/pull/2671. -- 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/2376#issuecomment-719132970

Re: [Github-comments] [geany/geany] Parse C/C++ tags wrapped in an extern "C" {...} block (#349)

2020-05-16 Thread Masatake YAMATO
As far as trying the input directly with u-ctags, it captures all expected tags. -- 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/issues/349#issuecomment-629691440

Re: [Github-comments] [geany/geany] Incorrect type highlight in presence of macros (#1654)

2020-05-16 Thread Masatake YAMATO
I'm working this topic in u-ctags side. With the change I proposed in https://github.com/universal-ctags/ctags/pull/2543, ctags can capture `foo` well: ``` $ cat /tmp/foo.c #define BLEH struct foo BLEH { int _; }; $ u-ctags --param-CPreProcessor:_expand=1 --fields-C=+{macrodef} --fields=+S -o

Re: [Github-comments] [geany/geany] Symbols does not show first function/subroutine in fortran modules (#2115)

2020-05-16 Thread Masatake YAMATO
As far as my short studying, ``` Hello :: h ``` is incorrect (in meaning of syntax) fortran code. See http://www.icl.utk.edu/~mgates3/docs/fortran.html#Variable for an example. For such garbage input, u-ctags emits garbage. ctags captures i, test1, test2 and h itself If you put the `Hello` in `

Re: [Github-comments] [geany/geany] Latex ac (#1011)

2020-03-01 Thread Masatake YAMATO
I extended Tex parser of u-ctags agressively. https://github.com/universal-ctags/ctags/pull/2424 Commands in \newcommand are captured. https://github.com/universal-ctags/ctags/pull/2424/commits/3e2c7ce909cd73f12ada1cf0d59b470f5db6a87c If you think u-ctags captures more things, please, consider t

Re: [Github-comments] [geany/geany] R outline improved for environments and R6 classes, = sign added as well (#2376)

2020-03-01 Thread Masatake YAMATO
@mittelmark, I'm rewriting R parser in token oriented way in the upstream. https://github.com/universal-ctags/ctags/pull/2452 The support for assignment operators is improved. It includes '->'. The class supports come later. However, if test cases are given, I would like to merge your change. --

Re: [Github-comments] [geany/geany] Question: adding a kind to exising parser of u-ctags (#2227)

2019-07-29 Thread Masatake YAMATO
@b4n, thank you. I understand the situation. I will add comments to the tlib test case. -- 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/issues/2227#issuecomment-515929721

Re: [Github-comments] [geany/geany] Question: adding a kind to exising parser of u-ctags (#2227)

2019-07-24 Thread Masatake YAMATO
Closed #2227. -- 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/issues/2227#event-250711

Re: [Github-comments] [geany/geany] Question: adding a kind to exising parser of u-ctags (#2227)

2019-07-24 Thread Masatake YAMATO
Thank you for answering. -- 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/issues/2227#issuecomment-514744430

Re: [Github-comments] [geany/geany] Question: adding a kind to exising parser of u-ctags (#2227)

2019-07-24 Thread Masatake YAMATO
> When there's a mismatch, Geany refuses to start and writes an error message > including the name of the parser. Nice. It is the best way. -- 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/issu

Re: [Github-comments] [geany/geany] Question: adding a kind to exising parser of u-ctags (#2227)

2019-07-23 Thread Masatake YAMATO
Oh, I see. Defining the API is the best. However, it is not easy and cannot be done now. On the other hand, a new kind is already added to u-ctags source tree. So I will write a prototype tool for reporting the changes of the API in and send a pull request to Geany. We can use it as the start

Re: [Github-comments] [geany/geany] Question: adding a kind to exising parser of u-ctags (#2227)

2019-07-23 Thread Masatake YAMATO
...I think it is nothing about symbol. (the output of nm doesn't help us, e.g.) We have to solve the issue by designing work-flows. I would like to explain a situation causing a trouble. I will receive a pull request from a volunteer extending a parser which adds a kind to the parser. If I hav

[Github-comments] [geany/geany] Question: adding a kind to exising parser of u-ctags (#2227)

2019-07-23 Thread Masatake YAMATO
Sharing parser code between Geany and u-ctags (= making ctags a library) is in progreass. (The pull request for sharing was opened by @techee, and I merged them slowly.) I, a head maintainer of u-ctags, must take care not breaking the interface between Geany and u-ctags when introducing a chang

Re: [Github-comments] [geany/geany] Upstream or alternative solution for ctags regex parsers (#2119)

2019-04-25 Thread Masatake YAMATO
> However, libctags is already there. > @masatake I assume you mean the libctags that Geany builds? Yes, I mean "libctags in Geany source tree". It already works well, as you know. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on

Re: [Github-comments] [geany/geany] Upstream or alternative solution for ctags regex parsers (#2119)

2019-04-25 Thread Masatake YAMATO
@elextr, > If it was a proper library then both Geany and ctags and others should be > able to use it as a library. There should be no need to import ctags code > into Geany at all if it was a proper library, just link to the API. This is ideal but I would like to focus on the interface between

Re: [Github-comments] [geany/geany] Upstream or alternative solution for ctags regex parsers (#2119)

2019-04-24 Thread Masatake YAMATO
I guess libctags in geany may disable some unwanted features. It is understandable to me. Some features I have added to u-ctags is so immature. u-ctags should provide the way to disable such features at build-time or run-time. Could you write a short document about libctags internal? Based on th

Re: [Github-comments] [geany/geany] Upstream or alternative solution for ctags regex parsers (#2119)

2019-04-24 Thread Masatake YAMATO
After merging #2132, I think I should stop introducing new code to ctags side. How about moving libctags code to u-ctags? If it is in u-ctags side, I can take care not to break the interface. You can add a test case that represents an expectation of Geany side. I don't want Geany people to take ti

Re: [Github-comments] [geany/geany] Upstream or alternative solution for ctags regex parsers (#2119)

2019-04-23 Thread Masatake YAMATO
Allow me to join the discussion. > The regex engine used by Geany does not match the one used by upstream ctags How about replacing the regex engine of u-ctags? https://github.com/universal-ctags/ctags/issues/1861 I'm very surprised that @b4n has rewritten two parsers of u-ctags. Improving Cobol

Re: [Github-comments] [geany/geany] ctags/vhdl: kind names and kind letters (#2052)

2019-01-26 Thread Masatake YAMATO
@techee, thank you. We can add kind letter remapping feature uctags side. I'm thinking about adding parameters for specifying remapping to ctagsInit() in ctags-api.h. I'll report to Geany team when I get progress about this topic. -- You are receiving this because you are subscribed to this thre

Re: [Github-comments] [geany/geany] ctags/vhdl: kind names and kind letters (#2052)

2019-01-26 Thread Masatake YAMATO
Closed #2052. -- 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/issues/2052#event-2098970827

Re: [Github-comments] [geany/geany] ctags/vhdl: kind names and kind letters (#2052)

2019-01-17 Thread Masatake YAMATO
@b4n, I don't understand well "internally" means. I guess Geany uses kind names only after getting tags information from ctags. ctags may return 'p' or 'f' kind tags. Both are unified to "function" by calling ctagsGetKindName. Am I correct? -- You are receiving this because you are subscribe

Re: [Github-comments] [geany/geany] Merge Geany parsers with universal-ctags parsers (#1162)

2019-01-17 Thread Masatake YAMATO
@elextr, thank you for replying. I would like to know the workflow of geany side. Consider parser for X is alrady merged. It means X is maintained u-tags side, and geany imports X from u-ctags. I added a very interesting feature or performance improvements to X yesterday. You may want to re-imp

Re: [Github-comments] [geany/geany] Merge Geany parsers with universal-ctags parsers (#1162)

2019-01-16 Thread Masatake YAMATO
I'm thinking about this issue. A. copying all parsers that are in geany and not in u-ctags to u-ctags. B. making geany using u-ctags parsers only if they have enough quality (as default, see C.) C. providing the way to override to geany: if geany doesn't want to use a parser implementation in u-

[Github-comments] [geany/geany] ctags/vhdl: kind names and kind letters (#2052)

2019-01-16 Thread Masatake YAMATO
I have a question about VhdlKinds table in geany/ctags/parsers/vhdl.c. ``` static kindOption VhdlKinds [] = { ... { true, 'f', "function", "functions" }, { true, 'p', "function", "procedure" }, ``` Why is 'p' kind named to "function"? The kind name is already used for 'f'.