giellalt / giella-core

Build tools and build support files as well as developer support tools for the GiellaLT repositories.
https://giellalt.uit.no
GNU General Public License v3.0
7 stars 2 forks source link

Ampersand in the end of lexicon names breaks @CODE@ formatting #50

Closed trondtynnol closed 4 months ago

trondtynnol commented 4 months ago

A lang-kal developer has reported that when a lexicon name ends in &, and the line is included in documentation using @CODE@, the documentation is not generated correctly. E.g. in line 952 of lang-kal/src/cg3/disambiguator.cg3 (documentation page):

SET IVTVSUBJ& = IV_SUBJ& | SUBJTRANSVERB& ;  #!!≈ - **@CODE@**

This should be generated as

but is instead generated as

snomos commented 4 months ago

This is related to the awk script processing the doccomments, I assume. I thus assign it to Flammie.

Btw, this is CG syntax, not lexc 🙂

flammie commented 4 months ago

I guess all kinds of regex symbols might be problematic in code, should work nwo for the &