Skip to content

main,json-writer: allow the writer to disable "fixed" fields#2080

Merged
masatake merged 1 commit intouniversal-ctags:masterfrom
masatake:allow-to-disbale-fixed-fieds-in-json-writer
Apr 16, 2019
Merged

main,json-writer: allow the writer to disable "fixed" fields#2080
masatake merged 1 commit intouniversal-ctags:masterfrom
masatake:allow-to-disbale-fixed-fieds-in-json-writer

Conversation

@masatake
Copy link
Copy Markdown
Member

Close #2065.

The tags format must include name, input, and pattern fields.
When running ctags, disabling them are not allowed. To implement
this rule, "fixed" fields were introduced to field.c.

However, this rule is applicable only to the ctags writer. The
other writer like json-writer doesn't need to follow the rule.

The fixed field is implemented in field.c. Now, it moves to writer-ctags.c.
As the result, json-writer can print the result with disabling
"name", "input", and/or "pattern".

Signed-off-by: Masatake YAMATO yamato@redhat.com

@masatake masatake force-pushed the allow-to-disbale-fixed-fieds-in-json-writer branch from b8f212d to e880faf Compare April 13, 2019 14:21
Close universal-ctags#2065.

The tags format must include name, input, and pattern fields.
When running ctags, disabling them are not allowed. To implement
this rule, "fixed" fields were introduced to field.c.

However, this rule is applicable only to the ctags writer. The
other writer like json-writer doesn't need to follow the rule.

The fixed field is implemented in field.c. Now, it moves to writer-ctags.c.
As the result, json-writer can print the result with disabling
"name", "input", and/or "pattern".

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake force-pushed the allow-to-disbale-fixed-fieds-in-json-writer branch from e880faf to 8182f84 Compare April 14, 2019 07:58
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.0009%) to 85.342% when pulling 8182f84 on masatake:allow-to-disbale-fixed-fieds-in-json-writer into 61cc66c on universal-ctags:master.

@masatake masatake merged commit d738e3d into universal-ctags:master Apr 16, 2019
@masatake masatake deleted the allow-to-disbale-fixed-fieds-in-json-writer branch April 16, 2019 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable/Disable static fields like pattern field in json output mode (Was: How to generate tree like structure from the ctags output)

2 participants