yasnippet-snippets icon indicating copy to clipboard operation
yasnippet-snippets copied to clipboard

Typos causes emacs warnings

Open prgreadonly opened this issue 1 year ago • 1 comments
trafficstars

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!

prgreadonly avatar Jan 31 '24 16:01 prgreadonly

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

mzjn avatar Feb 03 '24 18:02 mzjn