Skip to content

Commit 3a40e07

Browse files
authored
Merge pull request #54 from riscv/53-tags-backend-doesnt-allow-output-file-name-to-be-controlled-from-isa-manual-makefile
2 parents 36f09ee + 92f7511 commit 3a40e07

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

converters/tags.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ class TagsConverter
99

1010
def initialize(backend, opts = {})
1111
super
12-
outfilesuffix(".tags.json")
13-
# Pass `-a tags-prefix=qx_` to only include tags starting with `qx_`.
14-
@prefix = opts[:document].attributes.fetch("tags-prefix", "")
12+
# Pass `-a tags-output-suffix=.foo` to set suffix of generated output JSON file to ".foo"
13+
outfilesuffix(opts[:document].attributes.fetch("tags-output-suffix", ".tags.json"))
14+
# Pass `-a tags-match-prefix=foo` to only include tags starting with `foo`.
15+
@prefix = opts[:document].attributes.fetch("tags-match-prefix", "")
1516
end
1617

1718
# `node` is an `AbstractNode`.

0 commit comments

Comments
 (0)