AndreaCrotti / yasnippet-snippets

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

Typos causes emacs warnings #487

Open prgreadonly opened 5 months ago

prgreadonly commented 5 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 5 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