branch: elpa/yasnippet-snippets
commit 3c09fa913511ebd1fb5e5b014ec04067c9335f7b
Author: Stephen Hassard <2355041+shass...@users.noreply.github.com>
Commit: GitHub <nore...@github.com>

    Fix unknown directive warnings in c++-mode/class11 (#495)
    
    The following warnings are emitted by yasnippet:
    ```
    Ignoring unknown directive "desc" in file: 
.../yasnippet-snippets/snippets/c++-mode/class11
    Ignoring unknown directive "\\${[0-9N]*" in file: 
.../yasnippet-snippets/snippets/c++-mode/class11
    Ignoring unknown directive "References" in file: 
.../yasnippet-snippets/snippets/c++-mode/class11
    ```
    
    Use an unconventional ## to mark comments so yasnippet will ignore
    lines that contain colons.
---
 snippets/c++-mode/class11 | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/snippets/c++-mode/class11 b/snippets/c++-mode/class11
index 815129952d..73390b09ba 100644
--- a/snippets/c++-mode/class11
+++ b/snippets/c++-mode/class11
@@ -4,17 +4,19 @@
 # group: c++11
 # uuid: d7c41f87-9b8a-479d-bb12-89f4cbdd46a7
 # contributor: Ved Vyas
-# desc: Snippet for C++11 classes based on c++-mode/class. Allows for Rule of
-# [0, All]. A choice between ";", " = default;", and " = delete;" is presented
-# for each method. The methods and some of the optional keywords/specifiers are
-# exposed as fields that users can easily skip-and-clear.
-# Hackish query-replace-regexp to renumber non-mirror fields in the region
-# between public and protected (can use N as a field number in the snippet):
-# \${[0-9N]*:\([^\$]\) -> ${\,(+ 2 \#):\1
-# References:
-# 1. http://en.cppreference.com/w/cpp/language/rule_of_three#Rule_of_five
-# 2. 
https://en.wikipedia.org/wiki/Rule_of_three_%28C%2B%2B_programming%29#Example_in_C.2B.2B
-# 3. http://stackoverflow.com/a/4782927
+#
+## Snippet for C++11 classes based on c++-mode/class. Allows for Rule of
+## [0, All]. A choice between ";", " = default;", and " = delete;" is presented
+## for each method. The methods and some of the optional keywords/specifiers 
are
+## exposed as fields that users can easily skip-and-clear.
+## Hackish query-replace-regexp to renumber non-mirror fields in the region
+## between public and protected (can use N as a field number in the snippet):
+## \${[0-9N]*:\([^\$]\) -> ${\,(+ 2 \#):\1
+##
+## References
+## 1. http://en.cppreference.com/w/cpp/language/rule_of_three#Rule_of_five
+## 2. 
https://en.wikipedia.org/wiki/Rule_of_three_%28C%2B%2B_programming%29#Example_in_C.2B.2B
+## 3. http://stackoverflow.com/a/4782927
 # --
 class ${1:Name}
 {

Reply via email to