File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -731,15 +731,20 @@ Rust syntax is restricted in two ways:
731
731
pairs when they occur at the beginning of, or immediately after, a ` $(...)* ` ;
732
732
requiring a distinctive token in front can solve the problem.
733
733
734
- ## Syntax extensions useful for the macro author
734
+ ## Syntax extensions useful in macros
735
735
736
- * ` log_syntax! ` : print out the arguments at compile time
737
- * ` trace_macros! ` : supply ` true ` or ` false ` to enable or disable macro expansion logging
738
736
* ` stringify! ` : turn the identifier argument into a string literal
739
737
* ` concat! ` : concatenates a comma-separated list of literals
740
- * ` concat_idents! ` : create a new identifier by concatenating the arguments
741
738
742
- The following attributes are used for quasiquoting in procedural macros:
739
+ ## Syntax extensions for macro debugging
740
+
741
+ * ` log_syntax! ` : print out the arguments at compile time
742
+ * ` trace_macros! ` : supply ` true ` or ` false ` to enable or disable macro expansion logging
743
+
744
+ ## Quasiquoting
745
+
746
+ The following syntax extensions are used for quasiquoting Rust syntax trees,
747
+ usually in [ procedural macros] ( book/plugins.html#syntax-extensions ) :
743
748
744
749
* ` quote_expr! `
745
750
* ` quote_item! `
@@ -748,6 +753,8 @@ The following attributes are used for quasiquoting in procedural macros:
748
753
* ` quote_tokens! `
749
754
* ` quote_ty! `
750
755
756
+ Documentation is very limited at the moment.
757
+
751
758
# Crates and source files
752
759
753
760
Rust is a * compiled* language. Its semantics obey a * phase distinction*
You can’t perform that action at this time.
0 commit comments