AndreaCrotti / yasnippet-snippets

a collection of yasnippet snippets for many languages
GNU General Public License v3.0
1.17k stars 465 forks source link

Typos causes emacs warnings #487

Closed prgreadonly closed 1 month ago

prgreadonly commented 10 months ago

Hello,

There appear to be a few typographical errors in the c++ and cc modes that cause warnings in emacs:

Ignoring unknown directive "desc" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/c++-mode/class11
Ignoring unknown directive "\\${[0-9N]*" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/c++-mode/class11
Ignoring unknown directive "References" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/c++-mode/class11
Ignoring unknown directive "cotributor" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/cc-mode/file_description
Ignoring unknown directive "cotributor" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/cc-mode/function_description
Ignoring unknown directive "cotributor" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/cc-mode/member_description
Ignoring unknown directive "desc" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/c++-mode/class11
Ignoring unknown directive "\\${[0-9N]*" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/c++-mode/class11
Ignoring unknown directive "References" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/c++-mode/class11
Ignoring unknown directive "cotributor" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/cc-mode/file_description
Ignoring unknown directive "cotributor" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/cc-mode/function_description
Ignoring unknown directive "cotributor" in file: /home/user/spacemacs/elpa/29.2/develop/yasnippet-snippets-20240115.1138/snippets/cc-mode/member_description

The cotributor typo can be fixed with a simple search and replace c++-mode/class11 needs the header comments to comply to the standard

Thanks!

mzjn commented 9 months ago

The function_docstring snippet for Python causes a similar warning:

Ignoring unknown directive "NOTE" in file: /home/user/.emacs.d/elpa/yasnippet-snippets-20240115.1138/snippets/python-mode/function_docstring

AndreaCrotti commented 1 month ago

I think these are all fixed now