Open MinaToma opened 4 years ago
Not a kythe issue so much as it is a lexer issue:
https://cs.opensource.google/verible/verible/+/master:verilog/parser/verilog.y;drc=cb7d6286758ebbb446cb9ccb87d5bfff350e94cf;l=533 https://cs.opensource.google/verible/verible/+/master:verilog/parser/verilog.y;drc=cb7d6286758ebbb446cb9ccb87d5bfff350e94cf;l=793
branch
is a Verilog-AMS keyword, and conservatively, the lexer and parser interpret it as such. I don't have dialect selection implemented yet.
Dialect-selection would mean a configurable post-lexer pass that downgrades select keywords into SymbolIdentifier
before passing it onto the parser.
Status: Currently, this is worked around in Verible's kythe extractor, the branch
keyword (when used as an identifier) is ignored safely.
Is fixed since https://github.com/chipsalliance/verible/commit/ef935c9036984a4583df5510f813f4e66db0799f in which branch
is qualified as SymbolIdentifier
as it is never used in the grammar.
Input test case
Describe what is wrong or missing
CST for this code:
Expected CST:
In CST
branch
here should beSymbolIdentifier
and notbranch