# [parser] Error when parameter character is parsed #715

Closed
opened this issue Jul 22, 2019 · 2 comments

Contributor

### Skillmon commented Jul 22, 2019 • edited

 In the parser module, parsing a character with category code 6 will throw an error Illegal parameter number in definition of \pgfparserletter. Example code: \documentclass[]{article} \usepackage{pgf} \usepgfmodule{parser} \pgfparserdef{error}{initial}|{\pgfparserswitch{final}} \pgfparserdef{error}{initial}{\meaning##}{category 6 read} \pgfparserset{status=true} \begin{document} \pgfparserparse{error}#| \end{document}
Contributor Author

### Skillmon commented Jul 22, 2019

 I already know how to fix this, but first wanted to ask whether fixing it only for # with category 6 is ok, or should I implement a more robust but slower code that should work for any character of category 6?
Member

### hmenke commented Jul 22, 2019

 Since you are probably the only user of the parser module at all, you can fix it at your discretion.

### Skillmon added a commit to Skillmon/pgf that referenced this issue Jul 23, 2019

 fixes pgf-tikz#715 
 15ea6b9 

Merged

### hmenke added a commit to hmenke/pgf that referenced this issue Aug 3, 2019

 fixes pgf-tikz#715 
 6f03082 

### hmenke added a commit to hmenke/pgf that referenced this issue Aug 3, 2019

 fixes pgf-tikz#715 
 5c746e5